GladysDevelopers

Create a payment

Records a request for money. Nothing is held until the payer approves.

Choose a TEST app to send requests from the playground.
post/payments

Records a request for money. Nothing is held until the payer approves.

Authorization

BearerAuth
headerAuthorizationBearer <token>

An access token from POST /oauth/token: client_credentials for your own app, or authorization_code for a user who connected it.

Header Parameters

Idempotency-Key?string

One value per action, resent unchanged on every retry. Will become required (400 IDEMPOTENCY_KEY_REQUIRED without it)

Request Body

Payment

application/json
  1. body
amount*string
capture_method?models.CaptureMethod
Value in"AUTOMATIC""MANUAL"
currency?string
description?string
merchant_reference?string
metadata?string
return_url?string

Response Body

Created

application/json
  1. response
data?
error?
message?string
meta?
success?boolean
curl -X POST "https://example.com/payments" \  -H "Content-Type: application/json" \  -d '{    "amount": "1500.00"  }'
{  "error": {    "code": "string",    "details": {      "property1": "string",      "property2": "string"    },    "message": "string"  },  "message": "string",  "meta": {    "pagination": {      "next_cursor": "string",      "page": 0,      "per_page": 0,      "total_items": 0,      "total_pages": 0    }  },  "success": true,  "data": {    "amount": "1500.00",    "authorized_at": "string",    "cancellation_reason": "string",    "cancelled_at": "string",    "capture_method": "AUTOMATIC",    "captured_at": "string",    "checkout_url": "string",    "created_at": "string",    "currency": "string",    "description": "string",    "environment": "LIVE",    "expires_at": "string",    "fee": "1500.00",    "merchant_reference": "string",    "metadata": "string",    "net_amount": "1500.00",    "reference": "string",    "refundable_amount": "1500.00",    "refunded_amount": "1500.00",    "status": "CREATED"  }}