novinzodevelopers
API referencePlugin contractFunctions

Charge Saved Method

POST/functions/charge-saved-method

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

storeId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
connectionId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
paymentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
orderId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
renewalId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
amount*
savedMethod*
idempotencyKey*string

Response Body

application/json

curl -X POST "https://example.com/functions/charge-saved-method" \  -H "Content-Type: application/json" \  -d '{    "storeId": "string",    "connectionId": "string",    "paymentId": "string",    "orderId": "string",    "renewalId": "string",    "amount": {      "amountMinorUnits": "string",      "currency": "AED"    },    "savedMethod": {      "externalCustomerId": "string",      "externalMethodToken": "string",      "display": "string"    },    "idempotencyKey": "string"  }'
{  "_tag": "Succeeded",  "externalId": "string"}