Create Split Payments
POST/payments
Use this endpoint to create a split payment.
Request
Header Parameters
appToken created by /auth/token
Format: Bearer xxxxxx...
- application/json
Bodyrequired
required
data
object
A key for grouping different types of API data.
The type of transaction.
payments
attributes
object
A key for grouping payment identification data.
The type of payment transaction.
Possible values: [tokenv3Split
]
tokenv3Split
The merchant account number.
{{merchantId}}
Optional additional information to store with the call (optional).
{"email":"[email protected]","originIp":"127.0.0.1","customerIp":"127.0.0.1","rawData":"Lorem ipsum"}
transaction
object
A key for grouping payment transaction data. Required for all payment types except secondSplit
.
The transaction amount in cents.
500
The three-character code.
USD
The invoice number for the transaction.
PAYMENT-TOKEN-7
token
object
A key for grouping payment token information.
The first and last name on the account.
John Doe
The Token ID retrieved from the embedded checkout.
{{token}}
The expiration date of the payment method.
0229
True/False for requiring a ZIP match (or greater) to capture the payment.
true
billingAddress
object
A key for grouping billing address data.
The card holder’s street address (optional but recommended).
21 Jump Street
The card holder’s additional street address information (optional but recommended).
Suite 007
The card holder’s home city (optional but recommended).
Los Angeles
The card holder’s home state (optional but recommended).
CA
The card holder’s zip or postal code (optional, but recommended.)
83204
The card holder’s home country (optional but recommended).
USA
split
object
A key for grouping split information.
The merchant ID for the split transaction.
{{merchantId2}}
The amount to be split in cents.
100
Responses
- 201
Created
- application/json
- Schema
- Example (from schema)
- Result
Schema
links
object
URL for the current resource.
data
object
The type of transaction.
The payment transaction identification code.
attributes
object
A key for grouping payment identification data.
The application key.
transaction
object
A key for grouping payment identification data.
The banking entity response code.
The status of the transaction.
The transaction amount in dollars and cents.
The invoice number for the transaction.
The currency used for the transaction.
{
"links": {
"self": "string"
},
"data": {
"type": "string",
"id": "string",
"attributes": {
"paymentType": "string",
"transaction": {
"code": "string",
"message": "string",
"amount": "string",
"invoice": "string",
"currency": "string"
}
}
}
}
{
"links": {
"self": "x"
},
"data": {
"type": "payments",
"id": "{paymentId}",
"attributes": {
"paymentType": "card",
"transaction": {
"code": "0",
"message": "Success",
"amount": "500",
"invoice": "123456",
"currency": "USD",
"authCode": "A11111",
"avsResult": "T",
"gross": "500",
"net": "450",
"grossMinusNet": "50",
"fee": "35",
"rate": "2.95"
}
}
}
}