Gateway API
Introduction
Gateway API
Authentication
- HTTP: Bearer Auth
- API Key: SignatureAuth
The client sends HTTP requests with the Authorization header that contains the word Bearer followed by a space and the Shop Api Key.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
HMAC-SHA256 hash generated from JSON body using Shop Signing Key as a secret.
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | Signature |
License
Apache 2.0
Get payments
GET/api/v1/payments
Get a list of payments sorted by creation date (most recent first)
Request
Responses
- 200
- 400
- 401
Payment List Response
Bad request
Unauthorized
Examples
Create payment
POST/api/v1/payments
Payment request, used for DEPOSITS, WITHDRAWALS and REFUNDS
Request
Responses
- 200
- 400
- 401
Payment response
Bad request
Unauthorized
Examples
Find payment
GET/api/v1/payments/:id
Find payment by Id
Request
Responses
- 200
- 401
- 404
Payment Response
Unauthorized
Not Found
Examples
Execute deposit
PATCH/api/v1/payments/:id
Execute deposit without customer redirection to gateway checkout page. Consult with support team before using this method.
Request
Responses
- 200
- 400
- 401
- 404
Payment Response
Bad request
Unauthorized
Not Found
Examples
Capture payment
POST/api/v1/payments/:id/capture
Capture a Pre-Authorized payment fully or partially. Only a payment in AUTHORIZED state can be captured.
Request
Responses
- 200
- 400
- 401
Payment response
Bad request
Unauthorized
Examples
Void payment
POST/api/v1/payments/:id/void
Void a Pre-Authorized payment. Only a payment in AUTHORIZED state can be voided. The payment will be transferred to CANCELLED state and will no longer be available for capturing.
Request
Responses
- 200
- 400
- 401
Payment response
Bad request
Unauthorized
Examples
Register chargeback
POST/api/v1/payments/:id/chargebacks
Register a chargeback for a completed deposit payment. Only a payment of type DEPOSIT in COMPLETED state without an existing chargeback can be used.
Request
Responses
- 200
- 400
- 401
- 404
Payment response
Bad request
Unauthorized
Not Found
Examples
Approve withdrawal
POST/api/v1/payments/:id/approve
Approve a withdrawal payment that is awaiting merchant approval. Only a WITHDRAWAL payment in AWAITING_APPROVAL state can be approved.
Request
Responses
- 200
- 400
- 401
- 404
Payment response
Bad request
Unauthorized
Not Found
Examples
Reject withdrawal
POST/api/v1/payments/:id/reject
Reject a withdrawal payment that is awaiting merchant approval. Only a WITHDRAWAL payment in AWAITING_APPROVAL state can be rejected. The payment will be transferred to CANCELLED state.
Request
Responses
- 200
- 400
- 401
- 404
Payment response
Bad request
Unauthorized
Not Found
Examples
Get operations
GET/api/v1/payments/:id/operations
Get a list of operations performed during payment processing sorted by time (most recent first)
Request
Responses
- 200
- 401
- 404
Operation List Response
Unauthorized
Not Found
Examples
Retrieve customers secure card token
GET/api/v1/customers/{customer.referenceId}/card-tokens
Retrieve customers secure card token for further processing
Request
Responses
- 200
- 401
Received customers secure card token
Unauthorized
Examples
Retrieve customers instruments
GET/api/v1/customers/{customer.referenceId}/payment-methods/:paymentMethod/payment-instruments
Retrieve customers instruments for further processing
Request
Responses
- 200
- 401
Customer payment instruments
Unauthorized
Examples
Retrieve customers tokens
GET/api/v1/customers/:customerReferenceId/terminals/:terminalId/tokens
Retrieve customers tokens for a specific customer within a specific terminal
Request
Responses
- 200
- 401
Received customers tokens
Unauthorized
Examples
Find subscription
GET/api/v1/subscriptions/:id
Find subscription by Id
Request
Responses
- 200
- 401
- 404
Subscription Response
Unauthorized
Not Found
Examples
Patch subscription
PATCH/api/v1/subscriptions/:id
Patch subscription
Request
Responses
- 200
- 400
- 401
- 404
Subscription Response
Bad request
Unauthorized
Not Found
Examples
Get balances
GET/api/v1/balances
Get a list of merchant balances in the Financial Module for a specific shop. For more detailed information, please contact our support team.
Responses
- 200
- 401
Balance List Response
Unauthorized
Examples
Get balances available for withdrawals via the gateway API
GET/api/v1/available-withdrawal-balances
Get balances available for withdrawals via the gateway API. See the "Check Withdrawal Balance" section in the shop settings.
Responses
- 200
- 401
List of balances for the shop that was authenticated in the request
Unauthorized
Examples
Payment processing completed
Webhook
Publish details of a new processed payment.
Request
Responses
- 200
Return a 200 status to indicate that the data was received successfully