Saved Card
POST SavedCard (cloned)
important notes patientid is the field needed to tie the patient in featherpay db to the pms patient this id represents featherpay's id for that patient this is returned when creating / updating a patient via featherpay api { "tab" "examples", "url" "https //gfp api acdev io/api/v1/savedpayments/card", "name" "create / update patient", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "kind" "required", "name" "patientid", "type" "string", "children" \[], "description" "featherpay patient id" }, { "kind" "required", "name" "ephemerialtoken", "type" "string", "children" \[], "description" "encrypted token generated by js library" }, { "kind" "required", "name" "expiry", "type" "string", "children" \[], "description" "expiry date of credit card" }, { "kind" "required", "name" "postal", "type" "string", "children" \[], "description" "postal code of credit card" }, { "kind" "optional", "name" "cardtype", "type" "string", "children" \[], "description" "e g visa, american express, etc use js library to retrieve this data " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "c0f7bjpcqhajikyibqef0", "code" "{\n \\"savedpaymentid\\" \\"01gqsvmzh59xssxfxknbznw6py\\"\n}\n", "language" "200", "customlabel" "" } ], "selectedlanguageid" "c0f7bjpcqhajikyibqef0" }, "examples" { "languages" \[ { "id" "tsjh4baruelrazdnupv8e", "code" "curl x post \\\\\n url 'https //gfp api acdev io/api/v1/patients/' \\\\\n header 'content type application/json;charset=utf 8' \\\\\n header 'accept application/json' \\\\\n header 'x api key {secret api key}' \\\\\n header 'x store id {store ulid}' \\\\\n data raw '\n {\n \\"patientid\\" \\"307\\",\n \\"ephemeraltoken\\" \\"\<token from js library>\\",\n \\"expiry\\" \\"04/27\\",\n \\"postal\\" \\"30030\\",\n \\"cardtype\\" \\"visa\\"\n }'", "language" "json", "customlabel" "" } ], "selectedlanguageid" "tsjh4baruelrazdnupv8e" }, "description" "from your backend code, create / update the patient with your store id and private key ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }