The POS Payment Method object
Attributes
Unique identifier for the object.
Default: false
Default: false
{
"id": "p-o-s-payment-method_abc123",
"idx": 1,
"pos_profile_id": "pos_profile_id_example",
"default": false,
"mode_of_payment": "mode_of_payment_example",
"allow_in_returns": false
} /api/accounts/p-o-s-payment-method?parent_id={id} List pos payment methods by parent
Returns all pos payment methods belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of pos payment method objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/p-o-s-payment-method?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "p-o-s-payment-method_abc123",
"idx": 1,
"pos_profile_id": "pos_profile_id_example",
"default": false,
"mode_of_payment": "mode_of_payment_example",
"allow_in_returns": false
}
],
"has_more": false,
"total": 1
} /api/accounts/p-o-s-payment-method Create a pos payment method
Creates a new pos payment method object.
Body parameters
Default: false
Default: false
Returns
Returns the newly created pos payment method object if the call succeeded.
curl https://api.overplane.dev/api/accounts/p-o-s-payment-method \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"pos_profile_id":"pos_profile_id_example","mode_of_payment":"mode_of_payment_example"}' {
"id": "p-o-s-payment-method_abc123",
"idx": 1,
"pos_profile_id": "pos_profile_id_example",
"default": false,
"mode_of_payment": "mode_of_payment_example",
"allow_in_returns": false
} /api/accounts/p-o-s-payment-method/{id} Update a pos payment method
Updates the specified pos payment method by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the pos payment method to update.
Body parameters
Default: false
Default: false
Returns
Returns the updated pos payment method object.
curl https://api.overplane.dev/api/accounts/p-o-s-payment-method/p-o-s-payment-method_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"pos_profile_id":"pos_profile_id_example"}' {
"id": "p-o-s-payment-method_abc123",
"idx": 1,
"pos_profile_id": "pos_profile_id_example",
"default": false,
"mode_of_payment": "mode_of_payment_example",
"allow_in_returns": false
} /api/accounts/p-o-s-payment-method/{id} Delete a pos payment method
Permanently deletes a pos payment method. This cannot be undone.
Path parameters
The identifier of the pos payment method to delete.
Returns
Returns a confirmation that the pos payment method has been deleted.
curl https://api.overplane.dev/api/accounts/p-o-s-payment-method/p-o-s-payment-method_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "p-o-s-payment-method_abc123",
"deleted": true
} /api/accounts/p-o-s-payment-method/reorder Reorder pos payment methods
Updates the sort order of pos payment methods within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/p-o-s-payment-method/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "p-o-s-payment-method_abc123",
"idx": 1,
"pos_profile_id": "pos_profile_id_example",
"default": false,
"mode_of_payment": "mode_of_payment_example",
"allow_in_returns": false
}