The POS Opening Entry 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
Default: false
{
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
} /api/accounts/p-o-s-opening-entry/{id} Retrieve a pos opening entry
Retrieves the details of an existing pos opening entry. Supply the unique pos opening entry ID that was returned from a previous request.
Path parameters
The identifier of the pos opening entry to retrieve.
Returns
Returns the pos opening entry object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry/p-o-s-opening-entry_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
} /api/accounts/p-o-s-opening-entry List all pos opening entrys
Returns a list of pos opening entrys. 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 pos opening entry objects.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/p-o-s-opening-entry Create a pos opening entry
Creates a new pos opening entry object.
Body parameters
Default: draft
Default: false
Returns
Returns the newly created pos opening entry object if the call succeeded.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"period_start_date":"2024-01-15","posting_date":"2024-01-15","company":"Example Corp","pos_profile":"pos_profile_example","user":"user_example"}' {
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
} /api/accounts/p-o-s-opening-entry/{id} Update a pos opening entry
Updates the specified pos opening entry by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the pos opening entry to update.
Body parameters
Default: draft
Default: false
Returns
Returns the updated pos opening entry object.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry/p-o-s-opening-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","period_start_date":"2024-01-15"}' {
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
} /api/accounts/p-o-s-opening-entry/{id} Delete a pos opening entry
Permanently deletes a pos opening entry. This cannot be undone.
Path parameters
The identifier of the pos opening entry to delete.
Returns
Returns a confirmation that the pos opening entry has been deleted.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry/p-o-s-opening-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "p-o-s-opening-entry_abc123",
"deleted": true
} /api/accounts/p-o-s-opening-entry/{id}/submit Submit a pos opening entry
Submits a draft pos opening entry, transitioning its status from draft to submitted.
Path parameters
The identifier of the pos opening entry to act on.
Returns
Returns the pos opening entry object with updated status.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry/p-o-s-opening-entry_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
} /api/accounts/p-o-s-opening-entry/{id}/cancel Cancel a pos opening entry
Cancels a submitted pos opening entry, transitioning its status to cancelled.
Path parameters
The identifier of the pos opening entry to act on.
Returns
Returns the pos opening entry object with updated status.
curl https://api.overplane.dev/api/accounts/p-o-s-opening-entry/p-o-s-opening-entry_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "p-o-s-opening-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"period_start_date": "2024-01-15",
"period_end_date": "2024-01-15",
"posting_date": "2024-01-15",
"company": "Example Corp",
"pos_profile": "pos_profile_example",
"user": "user_example",
"set_posting_date": false,
"pos_closing_entry": "pos_closing_entry_example"
}