Server-to-Server Card API
Ask AI
Endpoint contract
Send card details directly to GLODIPAY from your own server. This flow requires PCI-compliant card collection on the merchant side.
POST /v2/card/apiapplication/jsonSignature required
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
merchantId | String(1,50) | M | Merchant ID. |
orderRef | String(1,250) | M | Your transaction reference. |
amount | Float | M | Invoice amount. Minimum 1. |
currency | String(3) | M | Currency supported by the processors assigned to your account (usually USD). |
cancelUrl | String(1,300) | M | Redirect URL on cancellation. |
callbackUrl | String(1,300) | M | Redirect URL after payment success. Outside sandbox it must resolve to a public address. |
notificationUrl | String(1,300) | M | Webhook endpoint. Outside sandbox it must resolve to a public address. |
errorUrl | String(1,300) | M | Redirect URL on payment error. |
orderDescription | String(max:3000) | O | Short order description. HTML tags are removed. |
metadata | String (JSON) | O | JSON string of key-value pairs, returned in IPN and query responses. |
paymentMethod | String | M | Must be card. |
feeBySeller | Number(0-100) | O | Seller fee percentage. |
billingFirstName | String(max:255) | M | Billing first name. |
billingLastName | String(max:255) | M | Billing last name. |
billingStreet1 | String(max:255) | M | Billing address line 1. |
billingStreet2 | String(max:255) | O | Billing address line 2. |
billingCity | String(max:255) | M | Billing city. |
billingEmail | String(max:255) | M | Buyer email. |
billingState | String(min:2,max:255) | C | Required when billingCountry is US or CA. |
billingCountry | String | M | ISO 3166-1 alpha-2 country code. |
billingPostalCode | String(max:25) | M | Postal / ZIP code. |
billingPhoneCountryCode | String(max:10) | O | Phone country code. |
billingPhoneNumber | String(max:30) | M | Phone number. |
cardNumber | String(12,19) | M | Card number. |
cardMonth | String | M | Expiry month, for example 12. |
cardYear | String | M | 2-digit expiry year, for example 30. |
cardSecurityCode | String(3,4) | M | CVV / CVC. |
customerIp | String | M | Customer IP address. |
websiteUrl | String(max:300) | O | Merchant website URL. |
expiresAt | String | O | Session expiry, format 2026-04-22T10:00:00.000000Z. Default is 24 hours. |
browserDetails | JSON | C | Browser fingerprint object. Required by some processors. |
signature | String(max:750) | M | RSA-MD5 signature. |
Response cases
Response status values:
success— Payment completed immediately.data.transactionIdis returned.redirect— 3DS required. Redirect the buyer todata.url. After 3DS GLODIPAY sends the result via IPN and redirects the buyer tocallbackUrl.pending— Awaiting PSP confirmation. Final result will be sent via IPN.error— Payment failed. HTTP 422 for validation errors (witherrorsarray), HTTP 400/500 for processing errors, or HTTP 422 with top-leveltransactionId: nulland noerrorsarray if the merchant has no S2S-capable processor configured (HPP-only accounts).
Source
This page is derived from Server-to-Server Card API.