The Repost Payment Ledger 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": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
} /api/accounts/repost-payment-ledger/{id} Retrieve a repost payment ledger
Retrieves the details of an existing repost payment ledger. Supply the unique repost payment ledger ID that was returned from a previous request.
Path parameters
The identifier of the repost payment ledger to retrieve.
Returns
Returns the repost payment ledger object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger/repost-payment-ledger_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
} /api/accounts/repost-payment-ledger List all repost payment ledgers
Returns a list of repost payment ledgers. 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 repost payment ledger objects.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/repost-payment-ledger Create a repost payment ledger
Creates a new repost payment ledger object.
Body parameters
Default: draft
Default: false
Returns
Returns the newly created repost payment ledger object if the call succeeded.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"posting_date":"2024-01-15","company":"Example Corp"}' {
"id": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
} /api/accounts/repost-payment-ledger/{id} Update a repost payment ledger
Updates the specified repost payment ledger by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the repost payment ledger to update.
Body parameters
Default: draft
Default: false
Returns
Returns the updated repost payment ledger object.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger/repost-payment-ledger_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","posting_date":"2024-01-15"}' {
"id": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
} /api/accounts/repost-payment-ledger/{id} Delete a repost payment ledger
Permanently deletes a repost payment ledger. This cannot be undone.
Path parameters
The identifier of the repost payment ledger to delete.
Returns
Returns a confirmation that the repost payment ledger has been deleted.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger/repost-payment-ledger_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "repost-payment-ledger_abc123",
"deleted": true
} /api/accounts/repost-payment-ledger/{id}/submit Submit a repost payment ledger
Submits a draft repost payment ledger, transitioning its status from draft to submitted.
Path parameters
The identifier of the repost payment ledger to act on.
Returns
Returns the repost payment ledger object with updated status.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger/repost-payment-ledger_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
} /api/accounts/repost-payment-ledger/{id}/cancel Cancel a repost payment ledger
Cancels a submitted repost payment ledger, transitioning its status to cancelled.
Path parameters
The identifier of the repost payment ledger to act on.
Returns
Returns the repost payment ledger object with updated status.
curl https://api.overplane.dev/api/accounts/repost-payment-ledger/repost-payment-ledger_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "repost-payment-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"repost_status": "repost_status_example",
"add_manually": false,
"repost_error_log": "repost_error_log_example"
} Line items
Child objects that belong to this repost payment ledger. These are accessed via the parent's ID.
Repost Payment Ledger Items
Attributes
Endpoints
/api/accounts/repost-payment-ledger-items?parent_id={id} /api/accounts/repost-payment-ledger-items /api/accounts/repost-payment-ledger-items/{id} /api/accounts/repost-payment-ledger-items/{id} /api/accounts/repost-payment-ledger-items/reorder {
"id": "repost-payment-ledger-items_abc123",
"idx": 1,
"repost_payment_ledger_id": "repost_payment_ledger_id_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example"
}