Skip to content
AchaduDevelopers
Operational APIGo to website
Dashboard
Developers/API/commissions_sync
Commissions

Sync commissions

Query only authorized connectors and record one receipt per source.

POST/commissions/synccommissions:write
BEHAVIOR

The request validates the input, persists the command, and returns the initial state. Execution can continue in the dedicated queue.

EFFECT

You can create asynchronous work and webhook events after confirmation in the database.

REPETITION

On network failure, confirm the resource status before retrying. Automatically redo only 429 and 5xx with backoff and jitter.

Request

sourcesarray · bodySources that should be consulted.optional
fromstring · bodyHome ISO 8601.date-timeoptional
tostring · bodyEnd ISO 8601.date-timeoptional
AuthorizationBearer ach_live_...
Acceptapplication/json
Scopecommissions:write

Executable example

curl
curl -X POST 'https://achadu.com/api/v1/commissions/sync' \
  -H 'Authorization: Bearer ach_live_...' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "sources": [],
  "from": "2026-09-01T15:00:00Z",
  "to": "2026-09-01T15:00:00Z"
}'

Response and errors

Every response includes request_id. Lists add pagination; mutable resources return the persisted state after the operation.

200 application/json
{
  "data": {
    "id": "com_01J...",
    "marketplace": "amazon",
    "amount": 24.73,
    "currency": "BRL",
    "status": "approved",
    "order_id": "ORDER-123",
    "occurred_at": "2026-08-31T18:20:00.000Z"
  },
  "request_id": "req_01J..."
}
200Operation completed.
400Invalid parameter, body or transition.
401Missing, invalid, expired or revoked key.
402The account plan does not release this interface.
403A chave precisa do escopo commissions:write.
404Feature does not exist in this account.
409The current state prevents this operation.
413The JSON body exceeds 128 KB.
429The 120 requests per minute window has been exceeded.