API Reference

Complete reference documentation for the Yassir Payment Gateway API

Overview

The Yassir Payment Gateway API is organized around REST principles. It accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.

Base URLs

EnvironmentURL
Sandboxhttps://stg-api.payment.yassir.io
Productionhttps://api.payment.yassir.io

Authentication

All API requests require Basic Authentication using your Client ID and Client Secret. See the Authentication Guide for details.

Endpoints

Payment Methods

GET/payment-methods
Basic Auth
List available payment methods for a given country and amount.

Payment Intents

POST/payments/intents
Basic Auth
Create a new payment intent to begin the payment process.
POST/payments/intents/:id/proceed
Basic Auth
Proceed with a payment using the selected payment method.
GET/payments/intents/:id/check
Basic Auth
Check the current status of a payment intent.
POST/payments/:paymentId/refund
Basic Auth
Refund a completed payment, either fully or partially.

Errors

The API uses standard HTTP response codes to indicate the success or failure of requests.

CodeDescription
200Success
201Resource created
400Bad request - invalid parameters
401Unauthorized - invalid or missing credentials
404Resource not found
429Too many requests - rate limit exceeded
500Internal server error

See the Error Codes page for a complete list of application-specific error codes.