Restricted regions

  • Partners must follow the Partner Terms.
  • GhostSwap is not offered in the Restricted Regions listed in the Terms of Use.
  • When you know where your user is, send their country as userCountry on POST /v1/quotes and POST /v1/swaps: an ISO 3166-1 alpha-2 code such as "FR", in any case.
  • If you know their region, you can send an ISO 3166-2 subdivision code instead, such as "UA-43". Some regions are restricted on their own: UA-43 (Crimea), UA-40 (Sevastopol), UA-14 (Donetsk) and UA-09 (Luhansk) are refused, while plain "UA" is not.
  • A country in a Restricted Region, a subdivision of one, or a restricted subdivision gets HTTP 403, and no quote or swap is made:
{
  "error": {
    "type": "authorization_error",
    "code": "region_unavailable",
    "message": "Sorry, this service is not available in your region."
  }
}

Show the message and do not offer the swap to that user.