curl --request POST \
--url https://uat-api.clinkbill.com/api/payment-instrument \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"customerId": "cus_xxxxx",
"paymentInstrumentType": "CASHAPP",
"customerName": "Alice Example",
"metadata": {
"source": "checkout"
}
}
'{
"code": 200,
"msg": "success",
"data": {
"id": "<string>",
"customerId": "<string>",
"type": "ALIPAY",
"card": {
"last4": "<string>",
"name": "<string>",
"expiryYear": "<string>",
"expiryMonth": "<string>",
"scheme": "<string>",
"funding": "<string>",
"issuerRegion": "<string>",
"issuerBank": "<string>",
"billingAddress": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
}
},
"wallet": {
"accountTag": "<string>"
},
"created": 123
}
}"<string>"Payment Instrument
Create Payment Instrument
Create a new payment instrument for a customer. The request resolves or creates the customer first, then stores the payment instrument under that customer.
POST
/
payment-instrument
curl --request POST \
--url https://uat-api.clinkbill.com/api/payment-instrument \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"customerId": "cus_xxxxx",
"paymentInstrumentType": "CASHAPP",
"customerName": "Alice Example",
"metadata": {
"source": "checkout"
}
}
'{
"code": 200,
"msg": "success",
"data": {
"id": "<string>",
"customerId": "<string>",
"type": "ALIPAY",
"card": {
"last4": "<string>",
"name": "<string>",
"expiryYear": "<string>",
"expiryMonth": "<string>",
"scheme": "<string>",
"funding": "<string>",
"issuerRegion": "<string>",
"issuerBank": "<string>",
"billingAddress": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
}
},
"wallet": {
"accountTag": "<string>"
},
"created": 123
}
}"<string>"Authorizations
Headers
Body
application/json
Parameters required to create a payment instrument by API. Provide at least one of customerId, customerEmail, or referenceCustomerId.