Payments (also called transactions) are financial transactions related to an order.
POST /v1/companies/5678/orders/93824701/payments |
Field | Type | Required | Description |
---|---|---|---|
method_id |
integer | Yes |
The payment method used for the payment. See Payment Methods. Note: You don’t need to include a |
amount |
float | Yes |
The amount of the payment. Use a negative |
tip |
float | No | * The tip amount. |
ref |
string | No |
A reference for the payment. For examples:
|
credit_card_surcharge |
float | No | The credit card surcharge amount. |
The URI returned in the Location
header can only be used to update the payment, as GET
and DELETE
are not allowed on payments.
* Tip/Service
This action allows you to add/update reference, a tip or credit_card_surcharge. You may add them in the same API call.
Field | Type | Required |
---|---|---|
ref |
string | No |
tip |
float | No |
credit_card_surcharge |
float | No |
PUT /v1/companies/5678/orders/93824701/payments/1 |
The 1
in the URI is the number
of the payment (see get orders).
PUT /v1/companies/5678/orders/93824701/payments/1 |
Since payments that are already created cannot have their prices modified, a new payment will be created
with the amount of $0.00
and the tip amount.
PUT /v1/companies/5678/orders/93824701/payments/1 |