Add partial or complete payment to an order at a location.
Path Parameters
- Type: integer | stringFormat: int64idrequired
Specify the OrderId you would like to add a payment to
Body·
required
Cancellation token to cancel the operation
- Type: null | number | stringFormat: doubleamount
Amount of the payment. Can be omitted when mode is FullPayment. Cannot be negative
- Type: integer | stringFormat: int32id
Id of the payment within the order
- Type:mode[5
.17+] How the payment is applied to the order.
Standardapplies the givenamount;FullPaymentpays the full balance of the order. ForFullPayment, sendmode,tenderIdand optionallytipAmountandreferenceDetails;amountcan be omitted, and the order must have no prior payments.Possible values:
Standard= 0FullPayment= 1
- Type:reference
Details Properties: 2Name/value reference details for the payment, e.g. an authorization code
- Type: integer | stringFormat: int32tender
Id Id of the external tender used for this payment
- Type: number | stringFormat: doubletip
Amount Tip amount included with this payment. Cannot be negative
Responses
- application/json
Request Example for post/v1/orders/{id}/add-payment
curl https://apiint.api.parpos.com/order/v1/orders/1/add-payment \
--request POST \
--header 'Content-Type: application/json' \
--header 'parpos-access-token: YOUR_SECRET_TOKEN' \
--header 'parpos-location-token: YOUR_SECRET_TOKEN' \
--data '{
"Id": 1,
"Mode": 0,
"TenderId": 112123,
"Amount": 10,
"TipAmount": 10,
"ReferenceDetails": [
{
"Name": "AuthCode",
"Value": "509052"
}
]
}'
No Body
