POST:orders/pay.json
Commerce APIPOST:orders/pay.json

POST:orders/pay.json

Description

Perform payment on an existing order.

Permission bit: "orders.payment"

Topic: Orders

Query Parameters

order_id: String, required

Unique order identifier. See also: Unique Identifiers

Example: ?order_id=or_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY


uuid: String

Request Body

OrderPayment

{
  "confirm": true,
  "credit_card": {
    "month": 1,
    "name": "John Smith",
    "number": "4242424242424242",
    "verification_value": "421",
    "year": 2025
  },
  "manual": {
    "amount": 0
  },
  "payment_method": "",
  "paypal": {
    "order_id": "",
    "patch": true
  }
}

Response Body

Order

Response Body Type

Loading module