Newer Version Available

This content describes an older version of this product. View Latest

Authorization Input

Payment authorization input consumed by the payment authorization service.
JSON example (without idempotency)
1{
2"accountId":"000000",
3"amount":"5000",
4"comments":"Authorization for $5000",
5"currencyIsoCode":"USD",
6"effectiveDate":"15-01-2020",
7"paymentGatewayId":"0000000",
8
9"paymentGroup":{
10   "createPaymentGroup":"true",
11   "sourceObjectId":"",
12   "currencyIsoCode":"USD"
13   },
14
15"paymentMethod": {
16   "address": "123 Test Street, San Francisco, CA, 94105",
17   "cardPaymentMethod": "",
18   "id": "0000000" ,
19   "saveForFuture": "false"
20 }
21}
JSON example (idempotency key in JSON payload)
1{
2 "accountId":"000000",
3 "amount":"5000",
4 "idempotencyKey":"qw",
5 "comments":"Authorization for $5000",
6 "currencyIsoCode":"USD",
7 "effectiveDate":"15-01-2020",
8 "paymentGatewayId":"0000000",
9
10 "paymentGroup":{
11   "createPaymentGroup":"true",
12   "sourceObjectId":"",
13   "currencyIsoCode":"USD"
14 },
15 "paymentMethod": {
16   "address": "123 Test Street, San Francisco, CA, 94105",
17   "cardPaymentMethod": "",
18   "id": "0000000" ,
19   "saveForFuture": "false"
20 }
21}
JSON example (idempotency key in header)
1{
2 "accountId":"000000",
3 "amount":"5000",
4 "comments":"Authorization for $5000",
5 "currencyIsoCode":"USD",
6 "effectiveDate":"15-01-2020",
7 "paymentGatewayId":"0000000",
8 "paymentGroup":{ "createPaymentGroup":"true", "sourceObjectId":"", "currencyIsoCode":"USD" },
9 "paymentMethod": {
10 "address": "123 Test Street,San Francisco, CA, 94105",
11 "cardPaymentMethod": "",
12 "id": "0000000" ,
13 "saveForFuture": "false"
14 }
15}
Header
Name: sfdc-Payments-Idempotency-Key
Data Type: String
Max Length: 255
Example:
1Content-Type: application/json; charset=UTF-8
2Accept: application/json
3sfdc-Payments-Idempotency-Key: UniqueIdempotencyKey
Properties
Name Type Description Required or Optional Available Version
accountId String Salesforce account that contains the payment transaction being authorized. Required 49.0
amount Double Authorization amount. Required 49.0
comments String Optional comments for the payment authorization. Optional 49.0
currencyIsoCode String Three-letter ISO 4217 currency code associated with the payment group record. Required, if multicurrency is enabled 49.0
effectiveDate String Date that the authorization will be applied to the transaction. Required 49.0
idempotencyKey String Idempotency key used for the payment request. Can be provided in the payload or the header, but not in both places at once. Optional 49.0
paymentGatewayId String Payment gateway that processes the authorization. Required 49.0
paymentGroup PaymentGroupInput​Representation Payment group for the authorization. The payload must reference either a paymentGroup or a paymentGroupId, but not both. Optional 49.0
paymentMethod AuthApiPayment​MethodInput​Representation Payment method used in the payment gateway for the authorization transaction. Required 49.0