Create Payment Source

Register a payment source that may be used to pay for one or more payments. For integrators who wish to call this endpoint directly, you must be PCI certified since you will be handling raw card details.

SecurityMarketplace API Key | Merchant Public Token | Merchant Secret Token | Customer JWT
Request
header Parameters
Customer-Id
string

Perform operation in the context of the given merchant customer. Usually not required — specify only if acting on behalf of a merchant customer not implied by the credentials specified in the Authorization header.

Merchant-Id
string

Perform operation in the context of the given merchant. Usually not required — specify only if acting on behalf of a merchant not implied by the credentials specified in the Authorization header.

Customer-Delegate-User-Id
string

Perform operation in the context of the given organisation customer. Usually not required — specify only if acting on behalf of a organisation customer not implied by the credentials specified in the Authorization header.

Request Body schema: application/json
required
One of:
required
object (CreateConsumerCardSource1)

DEPRECATED: Use generalised case (CreateSavedPaymentSource) instead

Responses
200
400
401
403
404
405
406
409
422
429
500
503
post/sources
Request samples
application/json
{
  • "CreateConsumerCardSource": {
    }
}
Response samples
application/json
{
  • "paymentSourceId": "psrc_Z2OSz5JDfRbNb_Se",
  • "customerId": "cust_Z2OSz5JDfRbNb_SZ",
  • "merchantId": "mcht_Z2OSz5JDfRbNb_SY",
  • "customerDelegateId": "custd_Z2OS05JDfRbNb_S1",
  • "sourceMethod": {
    },
  • "usageScope": "ScopeOrganisation",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}
Copyright © April Solutions 2023. All right reserved.