Add partial or complete payment to an order at a location.

​

Path Parameters

  • Specify the OrderId you would like to add a payment to

Body·

required

Cancellation token to cancel the operation

  • Amount of the payment. Can be omitted when mode is FullPayment. Cannot be negative

  • Id of the payment within the order

  • How the payment is applied to the order. Standard applies the given amount; FullPayment pays the full balance of the order. For FullPayment, send mode, tenderId and optionally tipAmount and referenceDetails; amount can be omitted, and the order must have no prior payments.

    Possible values:

    • Standard = 0
    • FullPayment = 1
  • Name/value reference details for the payment, e.g. an authorization code

    Properties: 2
  • Id of the external tender used for this payment

  • 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