API v1 is DEPRECATED
API v1 is DEPRECATED and no longer maintained. Please use API v2 http://developer.coingate.com/v2
- Call Create Order API method to create an order in the CoinGate system.
- CoinGate checks if the order is valid.
- a) If the order is valid, CoinGate responds with 200 HTTP status and returns order data. After receiving 200 HTTP status, you should redirect the buyer to
payment_url
address. - b) If the order is not valid, CoinGate returns 422 (or other) error HTTP status and an error message.
- When the buyer pays for the order, CoinGate sends Payment Callback/Payment Notification to your
callback_url
url.callback_url
is defined when creating order. CoinGate also sends Payment Callback when order status is changed to canceled, expired or to any other status read more about CoinGate order statuses. Please note, that payment notifications are sent using POST method.
Environments
Live | https://api.coingate.com/v1 |
Sandbox | https://api-sandbox.coingate.com/v1 |
- If you wish to use Live environment, use have to create an account and API credentials on https://coingate.com
- If you wish to use Sandbox environment, use have to create an account and API credentials on https://sandbox.coingate.com
Resources
- Ruby Gem
- Coingate PHP
- Omnipay (PHP)
- Ruby on Rails Shop Example / Source Code
- PHP Laravel Shop Example / Source Code
- E-commerce Plugins
API Requests
API Request is used to query CoinGate API (examples: Create Order, Get Order).
To review your API Requests, login to your CoinGate account, then go to API » Requests.
API Request attributes:
- Action - Which API method was queried.
- Response - HTTP status returned by CoinGate.
- Parameters - Parameters used to query CoinGate API.
- Response - Parameters returned by CoinGate.
API Request Limits
1,000 / hour per ip address for all API endpoints.
1 hour API limits per credentials by specific endpoint:
Environment | Endpoint | Rate Limit |
---|---|---|
Live | POST /orders | 300 / hour |
Live | GET /orders/:id | 500 / hour |
Live | GET /orders | 500 / hour |
Sandbox | POST /orders | 300 / hour |
Sandbox | GET /orders/:id | 500 / hour |
Sandbox | GET /orders | 500 / hour |
All other endpoints which is not described above the limit is 1,000 / hour per API credentials.
API limits can be manually increased for specific user. If you want change your API limits, please contact to support: [email protected].
API returns 429 HTTP error if limit is exceeded.
Payment Callbacks (Payment Notifications)
Payment Callback (Payment Notification) is a response which is sent after order status is changed (see Order Statuses). It is sent by CoinGate to merchant's callback_url, which is set during order creation (see Create Order).
To review your Payment Callbacks, login to your CoinGate account, then go to API » Payment Callbacks.
Payment Callback attributes:
- Response Status - HTTP status returned by merchant.
- Response Data - Data body returned by merchant.
- Callback Params - Parameters sent by CoinGate to merchant's callback_url.
POST Request
In every POST method set Content-Type: application/x-www-form-urlencoded header.