#Add payment
Path
POST /businesses/{businessCode}/customers/{customerNumber}/orders/{orderReference}/payments Request Parameters
businessCode
required
string
The business in the context of which this request is to be executed, e.g. 1000
customerNumber
required
string
The customer in the context of which this request is to be executed, e.g. TFI2021072801
orderReference
required
string
The order in the context of which this request is to be executed, e.g. TFI2021072801_03
X-Request-ID
string
The unique ID of this particular request/transaction. Subsequent requests with the same request ID might get ignored.
Request Body
application/json
authorizedAmount
number
Values(>0)
Amount paid; if the amount is not provided, then the system assumes that the entire order has been paid
Amount paid; if the amount is not provided, then the system assumes that the entire order has been paid
paymentProvider
string
Max length: 30
maxLength(30)
Name of the payment provider
Name of the payment provider
Responses
-
internalRequestIdrequiredstringThe internal ID (i.e. receipt) of the message as received by the system
-
arrayactionstringExternal action to be triggered based on error code/messagecodestringCode of third party error.customerFacingMessagestringCustomer facing message of third party error.descriptionstringDescription of third party error.fieldReferencestringField reference of third party error.sourcestringSource of external error code, e.g. Internal ThirdPartyACI Third-PartyPayPaltitlestringTitle of third party error.typestringType or class of third party error.codestringError code.descriptionstringError description.titlestringError title.typestringError type.
-
arrayactionstringExternal action to be triggered based on error code/messagecodestringCode of third party error.customerFacingMessagestringCustomer facing message of third party error.descriptionstringDescription of third party error.fieldReferencestringField reference of third party error.sourcestringSource of external error code, e.g. Internal ThirdPartyACI Third-PartyPayPaltitlestringTitle of third party error.typestringType or class of third party error.codestringError code.descriptionstringError description.titlestringError title.typestringError type.