Skip to Content
TrackCrest Docs

Update affiliate invoice

Mark an affiliate invoice paid, partially paid (with amountPaid) or void.

PATCH
/api/v1/network/affiliate-invoices/{publicId}

Requires scope invoices:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Path Parameters

publicId*integer
Formatint32

Request Body

application/json
  1. body
status?string
amountPaid?|
Formatdouble

Response Body

OK

application/json
  1. response
data?
Example Request
curl -X PATCH 'https://trakcrt.com/api/v1/network/affiliate-invoices/0' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "publicId": 0,    "number": "string",    "affiliate": {      "publicId": 0,      "name": "string"    },    "status": "string",    "currency": "string",    "total": 0.1,    "amountPaid": 0.1,    "periodStart": "2019-08-24T14:15:22Z",    "periodEnd": "2019-08-24T14:15:22Z",    "issuedAt": "2019-08-24T14:15:22Z",    "dueAt": "2019-08-24T14:15:22Z",    "paidAt": "2019-08-24T14:15:22Z"  }}