Newer Version Available
Sale Input
- JSON example (without idempotency)
-
1{ 2 "accountId":"", 3 "amount":"5000", 4 "comments":"Sale of 20 renewed licenses", 5 "currencyIsoCode:"USD", 6 "effectiveDate":"05-01-2020", 7 "paymentGatewayId":"0000000", 8 "paymentGroup":"", 9 "paymentMethod":"SamplePaymentMethod" 10} - JSON example (idempotency key in JSON payload)
-
1{ 2"accountId":"", 3"amount":"5000", 4"idempotencyKey":"qw", 5"comments":"Sale of 20 renewed licenses", 6"currencyIsoCode:"USD", 7"effectiveDate":"05-01-2020", 8"paymentGatewayId":"0000000", 9"paymentGroup":"", 10"paymentMethod":"SamplePaymentMethod" 11} - JSON example (idempotency key in header)
-
1{ 2"accountId":"", 3"amount":"5000", 4"comments":"Sale of 20 renewed licenses", 5"currencyIsoCode:"USD", 6"effectiveDate":"05-01-2020", 7"paymentGatewayId":"0000000", 8"paymentGroup":"", 9"paymentMethod":"SamplePaymentMethod" 10} - 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 for the sale request. Optional 54.0 additionalData Map<String, String> Allows users to enter additional data, if needed a payment request. The additionalData object consists of entries, each of which includes a key and value. Supports up to five key-value pairs. Each key and each value can contain up to 255 characters. Optional 54.0 amount Double The amount of the sale. Required 54.0 comments String Optional comments for the payment sale request. Optional 54.0 currencyIsoCode String Three-letter ISO 4217 currency code associated with the payment group record. Required, if multi-currency is enabled 54.0 effectiveDate String The date that the sale request takes effect. Optional 54.0 email String Email of the client that initiated the request. Optional 54.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 54.0 ipAddress String IP address of the client that made the request. Optional 54.0 macAddress String MAC address of the client that made the request. Optional 54.0 paymentGatewayId String The gateway that evaluates the payment sale request. Required 54.0 paymentGroup Payment Group Input Represents a group of payment requests. Optional 54.0 paymentMethod Sale API Payment Method Input Represents a payment method for a payment sale transaction. Required 54.0 phone String Phone number of the client that initiated the request. Optional 54.0