Skip to content

Create Payment

POST
/payments

Creates a payment for an order. This can be used to mark an order as paid so it moves out of the ‘Awaiting payment’ state.

object
payment_attributes
object
payment_type

The payment method used.

string
order_id

The ID of the order.

number
reference_number

An optional reference number for bookkeeping purposes.

string
amount

The amount that was paid.

number
Example
{
"payment_attributes": {
"payment_type": "credit_card",
"order_id": 123456789,
"reference_number": "P-888888"
},
"amount": 10.99
}

Payment succesfully created.

The order with the given ID was not found.