Authorize a new order for a customer of one of your sub-merchants. The order is placed with the sub-merchant the customer belongs to; a customer outside your partner account is rejected.
Fields for creating a new order. The order is placed with the sub-merchant the customer belongs to.
Unique identifier of the customer placing the order. The order is placed with the sub-merchant this customer belongs to.
Line items for the order. At least one item is required.
Whether to place the order on net terms against the customer's credit line. Defaults to true.
- Mock serverhttps://docs.resolvepay.com/_mock/partners-api/openapi/orders
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/orders
curl -i -X POST \
https://docs.resolvepay.com/_mock/partners-api/openapi/orders \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 1000,
"customer_id": "X50sgfRd",
"line_items": [
{
"name": "Widget A",
"quantity": 2,
"unit_price": 50,
"sku": "ABC-123",
"total_price": 100,
"type": "product",
"tax_amount": 8.5
}
],
"order_number": "5055",
"po_number": "PO-555",
"metadata": {
"internal_ref": "ref-001"
}
}'An object representing an order.
ID of the checkout session that produced this order when a buyer authorized it through the sub-merchant's Checkout SDK. null for orders created through the API.
Whether the order is placed on net terms against the customer's credit line.
Channel that created the order, for example checkout for Checkout SDK orders or api for orders created through the API.
Current status of the order.
Remaining authorized amount available for capture in USD.
Timestamp of the first capture event.
Timestamp when the order was last updated.
{ "id": "ORDlaE5wbg0", "merchant_id": "MER456789", "checkout_id": "CHKabc123", "number": "ord_100001", "po_number": "PO-555", "advance_requested": true, "source": "checkout", "status": "authorized", "amount_authorized": 1000, "amount_captured": 500, "amount_canceled": 0, "amount_remaining": 500, "first_captured_at": "2024-01-15T10:00:00.000Z", "line_items": [ { … } ], "authorization_expires_at": "2024-02-15T10:00:00.000Z", "authorization_expiry_source": "system", "authorized_at": "2024-01-01T00:00:00.000Z", "updated_at": "2024-01-15T10:00:00.000Z", "customer": { "id": "X50sgfRd", "name": "Acme Corp", "remaining_credit": 5000 }, "capture_events": [ { … } ] }