The Exchange Rate Revaluation 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: 0.05
{
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
} /api/accounts/exchange-rate-revaluation/{id} Retrieve a exchange rate revaluation
Retrieves the details of an existing exchange rate revaluation. Supply the unique exchange rate revaluation ID that was returned from a previous request.
Path parameters
The identifier of the exchange rate revaluation to retrieve.
Returns
Returns the exchange rate revaluation object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation/exchange-rate-revaluation_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
} /api/accounts/exchange-rate-revaluation List all exchange rate revaluations
Returns a list of exchange rate revaluations. 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 exchange rate revaluation objects.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
}
],
"has_more": false,
"total": 1
} /api/accounts/exchange-rate-revaluation Create a exchange rate revaluation
Creates a new exchange rate revaluation object.
Body parameters
Default: draft
Default: 0.05
Returns
Returns the newly created exchange rate revaluation object if the call succeeded.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"posting_date":"2024-01-15","company":"Example Corp"}' {
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
} /api/accounts/exchange-rate-revaluation/{id} Update a exchange rate revaluation
Updates the specified exchange rate revaluation by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the exchange rate revaluation to update.
Body parameters
Default: draft
Default: 0.05
Returns
Returns the updated exchange rate revaluation object.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation/exchange-rate-revaluation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","posting_date":"2024-01-15"}' {
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
} /api/accounts/exchange-rate-revaluation/{id} Delete a exchange rate revaluation
Permanently deletes a exchange rate revaluation. This cannot be undone.
Path parameters
The identifier of the exchange rate revaluation to delete.
Returns
Returns a confirmation that the exchange rate revaluation has been deleted.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation/exchange-rate-revaluation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "exchange-rate-revaluation_abc123",
"deleted": true
} /api/accounts/exchange-rate-revaluation/{id}/submit Submit a exchange rate revaluation
Submits a draft exchange rate revaluation, transitioning its status from draft to submitted.
Path parameters
The identifier of the exchange rate revaluation to act on.
Returns
Returns the exchange rate revaluation object with updated status.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation/exchange-rate-revaluation_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
} /api/accounts/exchange-rate-revaluation/{id}/cancel Cancel a exchange rate revaluation
Cancels a submitted exchange rate revaluation, transitioning its status to cancelled.
Path parameters
The identifier of the exchange rate revaluation to act on.
Returns
Returns the exchange rate revaluation object with updated status.
curl https://api.overplane.dev/api/accounts/exchange-rate-revaluation/exchange-rate-revaluation_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "exchange-rate-revaluation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"company": "Example Corp",
"gain_loss_unbooked": 0,
"gain_loss_booked": 0,
"total_gain_loss": 0,
"rounding_loss_allowance": 0.05
} Line items
Child objects that belong to this exchange rate revaluation. These are accessed via the parent's ID.
Exchange Rate Revaluation Account
Attributes
Endpoints
/api/accounts/exchange-rate-revaluation-account?parent_id={id} /api/accounts/exchange-rate-revaluation-account /api/accounts/exchange-rate-revaluation-account/{id} /api/accounts/exchange-rate-revaluation-account/{id} /api/accounts/exchange-rate-revaluation-account/reorder {
"id": "exchange-rate-revaluation-account_abc123",
"idx": 1,
"exchange_rate_revaluation_id": "exchange_rate_revaluation_id_example",
"account": "account_example",
"party_type": "party_type_example",
"party": "party_example",
"account_currency": "USD",
"balance_in_account_currency": 0,
"current_exchange_rate": 0,
"balance_in_base_currency": 0,
"new_exchange_rate": 0,
"new_balance_in_base_currency": 0,
"gain_loss": 0,
"zero_balance": false,
"new_balance_in_account_currency": 0
}