v1

latestOpenAPI 3.1.02026-07-24920300.7 KB

Change Payment

Changes the payment method and associated billing address for an individual order.

patch/orders/{order_id}/change_payment/

Path parameters

order_idstring required

Unique order ID

Request body

paymentstring required

Payment record ID

Response

200

merchantstring
customerstring
paymentstring
shipping_addressstring
public_idstring
sub_totalstring
tax_totalstring
shipping_totalstring
discount_totalstring
totalstring
createdstring
placestring
cancelledstring
triesinteger
generic_error_countinteger
statusinteger
typeinteger
order_merchant_idstring
rejected_messagestring
extra_datastring
lockedboolean
oos_free_shippingboolean

Example response

{
  "merchant": "ac4f7938383a11e89ecbbc764e1107f2",
  "customer": "00026001",
  "payment": "070001bc02fd11e99542bc764e1043b0",
  "shipping_address": "66c25cd0564011e9abc5bc764e107990",
  "public_id": "c4e05d04ccc411e8ada3bc764e101db1",
  "sub_total": "22.90",
  "tax_total": "0.00",
  "shipping_total": "5.99",
  "discount_total": "21.08",
  "total": "28.89",
  "created": "2018-10-10 14:43:32",
  "place": "2020-08-20 00:00:00",
  "cancelled": "2019-04-05 12:13:32",
  "tries": 1,
  "status": 1,
  "type": 1
}