|
Endpoint to create payments on existing orders.
Payments can also be posted when orders are placed.
Note: Payments of type 'credit_card' will fail, even in Sandbox, if you have not yet signed up for the Braintree gateway.
Name | Description | Value Type | Required |
---|---|---|---|
type | The type of the payment to be posted. Available types:
| String | Required |
order_id | ID of the order on which the payment will be created | integer | Required |
is_refund | Create payment in the opposite direction, where the order seller will refund money to the buyer. | boolean | Optional |
amount | The amount of the payment. Will be created for order total if omitted. | Decimal | Optional |
billing_address_id | ID of an address | integer | Required if type is "credit_card" |
is_completed | Automatically transition state from "pending" to "completed" after creation | boolean | Optional |
Request | Response | |
---|---|---|
/v9/payments | ||
|
See Payments / Index |