The Payment Order object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
{
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
} /api/accounts/payment-order/{id} Retrieve a payment order
Retrieves the details of an existing payment order. Supply the unique payment order ID that was returned from a previous request.
Path parameters
The identifier of the payment order to retrieve.
Returns
Returns the payment order object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/payment-order/payment-order_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
} /api/accounts/payment-order List all payment orders
Returns a list of payment orders. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of payment order objects.
curl https://api.overplane.dev/api/accounts/payment-order \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/payment-order Create a payment order
Creates a new payment order object.
Body parameters
Default: draft
Returns
Returns the newly created payment order object if the call succeeded.
curl https://api.overplane.dev/api/accounts/payment-order \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp","payment_order_type":"payment_order_type_example","company_bank_account":"Example Corp"}' {
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
} /api/accounts/payment-order/{id} Update a payment order
Updates the specified payment order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the payment order to update.
Body parameters
Default: draft
Returns
Returns the updated payment order object.
curl https://api.overplane.dev/api/accounts/payment-order/payment-order_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
} /api/accounts/payment-order/{id} Delete a payment order
Permanently deletes a payment order. This cannot be undone.
Path parameters
The identifier of the payment order to delete.
Returns
Returns a confirmation that the payment order has been deleted.
curl https://api.overplane.dev/api/accounts/payment-order/payment-order_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "payment-order_abc123",
"deleted": true
} /api/accounts/payment-order/{id}/submit Submit a payment order
Submits a draft payment order, transitioning its status from draft to submitted.
Path parameters
The identifier of the payment order to act on.
Returns
Returns the payment order object with updated status.
curl https://api.overplane.dev/api/accounts/payment-order/payment-order_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
} /api/accounts/payment-order/{id}/cancel Cancel a payment order
Cancels a submitted payment order, transitioning its status to cancelled.
Path parameters
The identifier of the payment order to act on.
Returns
Returns the payment order object with updated status.
curl https://api.overplane.dev/api/accounts/payment-order/payment-order_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "payment-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"party": "party_example",
"posting_date": "2024-01-15",
"payment_order_type": "payment_order_type_example",
"company_bank_account": "Example Corp",
"company_bank": "Example Corp",
"account": "account_example"
} Line items
Child objects that belong to this payment order. These are accessed via the parent's ID.
Payment Order Reference
Attributes
Endpoints
/api/accounts/payment-order-reference?parent_id={id} /api/accounts/payment-order-reference /api/accounts/payment-order-reference/{id} /api/accounts/payment-order-reference/{id} /api/accounts/payment-order-reference/reorder {
"id": "payment-order-reference_abc123",
"idx": 1,
"payment_order_id": "payment_order_id_example",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example",
"amount": 0,
"supplier": "supplier_example",
"payment_request": "payment_request_example",
"mode_of_payment": "mode_of_payment_example",
"bank_account": "bank_account_example",
"account": "account_example",
"payment_reference": "payment_reference_example"
}