You can use Customer Profiles with createTransactionRequest calls by using the profile field and its children as payment information.
{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "LOGIN_ID",
"transactionKey": "TRANSACTION_KEY"
},
"refId": "123456",
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "43",
"profile": {
"customerProfileId": "27388924",
"paymentProfile": { "paymentProfileId": "25000332" }
},
"lineItems": {
"lineItem": {
"itemId": "1",
"name": "Item1",
"description": "Item1 Description",
"quantity": "1",
"unitPrice": "43.00"
}
}
}
}
}
VOID requests are used to void an existing transaction with a status of Authorized/Pending Capture or Captured/Pending Settlement.
VOID requests effectively cancel the Capture request that would start the funds transfer process, so no money changes hands on a transaction that has been voided. VOID request can be submitted via the API by including the following fields with your void request:
transactionType(voidTransaction)
refTransId(The transaction ID we assigned to the original transaction you are voiding)
{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "LOGIN_ID",
"transactionKey": "TRANSACTION_KEY"
},
"refId": "123456",
"transactionRequest": {
"transactionType": "voidTransaction",
"refTransId": "1234567890"
}
}
}