Creates a payment instrument.
To use this operation, you must first create a payment token using FramePay, then provide the token ID in this operation.
Payment instrument.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/storefront/payment-instruments
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/storefront/payment-instruments
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/storefront/payment-instruments
- CustomerJWT
- PublishableApiKey
curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/storefront/payment-instruments \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"token": "string",
"customFields": {
"foo": "bar"
}
}'Payment instrument created.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Payment card information.
ID of the payment instrument.
Status of the payment instrument. An active status means that a payment instrument has been used at least once for an approved transaction. To remove an instrument from use, set this value to deactivated.
For more information, see Deactivate a payment instrument.
Unique value that is used to identify the payment instrument. This value is generated from the bin and the last4 values. This value contains alphanumeric characters.
Bank Identification Number (BIN) of the payment card. This value is the same as the first 6 digits of the associated Primary Account Number (PAN).
Digital wallet type.
Brand of payment card.
Specifies if payouts are supported for cards with this BIN. Defaults to true. This value is false if the BIN does not support payouts.
Specifies if this payment instrument can be used as a backup for invoice payment retries.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
Date and time of the last approved payment. Payments are the result of sale or capture transactions.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
New customer JSON Web Token (JWT) that is used for further requests. This value is null if the customer is already authenticated.
- Payment card
- Bank account
- PayPal account
- Khelocard card
- Alternative instrument
{ "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "method": "payment-card", "status": "active", "fingerprint": "string", "bin": "string", "last4": "string", "expYear": 0, "expMonth": 0, "digitalWallet": "Apple Pay", "brand": "Visa", "bankCountry": "string", "bankName": "string", "isPayoutable": true, "billingAddress": { "firstName": "Benjamin", "lastName": "Franklin", "organization": "Rebilly", "address": "36 Craven St", "address2": "string", "city": "Austin", "region": "Texas", "country": "GB", "postalCode": "WC2N 5NF", "phoneNumbers": [ … ], "emails": [ … ], "dob": "1980-04-01", "jobTitle": "CEO", "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221" }, "useAsBackup": false, "billingPortalUrl": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "lastPaymentTime": "2019-08-24T14:15:22Z", "customFields": { "foo": "bar" }, "token": "string", "_links": [ { … } ] }