A callback will be sent to the merchant's callback_url when the billing request is created or the status is changed

🚧

API Callback Documentation

Read more about common callback functionalities in the API Callbacks section.

CoinGate callback sends the data below:

NameTypeValue
idIntegerBilling Request ID
uuidStringGenerated UUID
statusStringBilling Request status
titleStringCustom title of the request
due_daysIntegerDays after billing request will expired
callback_urlStringCallback URL
send_emailBooleanIf CoinGate will send an email to billing contact about request
underpaid_cover_pctStringUnderpaid coverage percentage by merchant.
created_atStringDate of blilling request creation.
billing_contact_idIntegerID of Billing Contact.
price_currencyHashid, symbol Currency. Currency of the invoice amount.
price_amountStringRequested amount
receive_currencyHashid, symbol Currency. Currency that will be received on payment.
receive_amountStringReceive amount
pay_currencyHashid, symbol Currency . Currency that was paid with.
pay_amountStringPaid amount
feesArray[Hash]Applied fees
billing_request_itemsHashBiling Product ID, quantity
billing_request_urlStringURL of invoice.

An example of pending callback in JSON:

{
  "id": 1,
  "uuid": "6d93326d-f386-4b90-ab35-1eaab2673ba7",
  "status": "pending",
  "title": "Billing Request Example",
  "due_days": 1,
  "callback_url": "https://callback.com/exmaple",
  "send_email": true,
  "underpaid_cover_pct": "0.0",
  "created_at": "2024-10-02T13:16:49Z",
  "billing_contact_id": 1,
  "billing_request_items": [
    {
      "id": 4,
      "billing_product_id": 1,
      "quantity": 2
    },
    {
      "id": 5,
      "billing_product_id": 1,
      "quantity": 1
    }
  ],
  "price_currency": {
    "id": 2,
    "symbol": "EUR"
  },
  "price_amount": "20.0",
  "receive_currency": {},
  "receive_amount": null,
  "pay_currency": {},
  "pay_amount": null,
  "fees": []
  "billing_request_url": ""
}

An example of completed callback in JSON

{
  "id": 3,
  "uuid": "a88d2edc-16be-4b1b-bfdf-bf62f302dca4",
  "status": "completed",
  "title": "20 eur",
  "due_days": 30,
  "callback_url": "https://callback.com/exmaple",
  "send_email": false,
  "underpaid_cover_pct": "0.0",
  "created_at": "2024-02-10T18:22:28.806Z",
  "billing_contact_id": 1,
  "external_contact_id": "1",
  "price_currency": {
    "id": 2,
    "symbol": "EUR"
  },
  "price_amount": "20.0",
  "receive_currency": {
    "id": 2,
    "symbol": "EUR"
  },
  "receive_amount": "19.8",
  "pay_currency": {
    "id": 1,
    "symbol": "BTC"
  },
  "pay_amount": "0.00022086",
  "fees": [
    {
      "type": "processing_fee",
      "amount": "0.2",
      "currency": {
        "id": 2,
        "symbol": "EUR"
      }
    }
  ],
  "billing_request_items": [],
  "billing_request_url": ""
}