Download OpenAPI specification:Download
Centrobill API
The HTTP headers are used to pass additional information between the clients and the server through the request and response header.
Certain request customization requires setting HTTP headers.
Content-Type
and Accept
headers control input and output format.
X-Request-ID | string Unique ID of request |
number required | string (Card number) [ 12 .. 19 ] characters |
expirationYear required | string (Card expiration year) 2 characters |
expirationMonth required | string (Card expiration month) 2 characters |
cvv | string (Card secure code) [ 3 .. 4 ] characters |
cardHolder | string (Cardholder full name) [ 1 .. 64 ] characters |
zip | string (Zip code) [ 1 .. 16 ] characters |
{- "number": "4024007179366348",
- "expirationYear": "25",
- "expirationMonth": "12",
- "cvv": "009",
- "cardHolder": "John Smith",
- "zip": "14000"
}
{- "token": "d86bdcbb-c369-46d9-a9d0-9c5010e3bfdb",
- "expireAt": 1611735028
}
X-Request-ID | string Unique ID of request |
required | Credit card (object) or Sepa (object) or Soforbanking (object) or Onlinebanking (object) or Paysafecard (object) or Giropay (object) or Ideal (object) or PPS (object) or Gash (object) or Przelewy24 (object) or Bancontact (object) or Eps (object) or Mybank (object) or Consumer saved payment data (object) or Concrete payment account of customer with CVV number (object) or Concrete payment account of customer (object) or Token of tokenized card data (object) or Crypto (object) |
required | SKU object with site id (object) or SKU object with SKU name (object) or SKU object with SKU name and custom prices (object) |
required | object |
object | |
metadata | object (Metadata) Used for storing additional structured information associated with payment |
emailOptions | object (Email Options) |
{- "paymentSource": {
- "type": "card",
- "number": "4024007179366348",
- "expirationMonth": "11",
- "expirationYear": "22",
- "cvv": "100",
- "3ds": false
}, - "sku": {
- "title": "Product name",
- "siteId": "983759353",
- "price": [
- {
- "offset": "0d",
- "amount": 19.99,
- "currency": "USD",
- "repeat": false
}
]
}, - "consumer": {
- "id": "4242522",
- "email": "jonny.sonny@google.com",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1987353539",
- "country": "USA",
- "state": "Alabama",
- "city": "Montgomery",
- "zip": "36101",
- "ip": "8.8.8.8",
- "userAgent": "mozilla/5.0 (iphone; cpu iphone os 13_1_2 like mac os x) applewebkit/605.1.15 (khtml, like gecko) version/13.0.1 mobile/15e148 safari/604.1",
- "deviceId": "1.1|hfp9sLiKhAoWyNSMpiQGh|mozilla/5.0 (windows nt 6.1) applewebkit/537.36 (khtml, like gecko) chrome/92.0.4515.131 safari/537.36|24#1344#840#799|internal-pdf-viewer#mhjfbmdgcfjbbpaeojofohoefgiehjai#internal-nacl-plugin|Win32|1g0u1g01u0u10r1u0x10g1y0g1d0g10g1010u101g0g1u01r0x10x101g01a010u101g01010u101r01z01ij01a0u1u01rd01r0r101ir01ii01aj01ux01ui01iy01y01ui0g1y01r01d0|MS|-1397920487|c39b35be"
}, - "url": {
}, - "metadata": {
- "foo": "bar"
}, - "emailOptions": {
- "send": true
}
}
{- "payment": {
- "code": "0",
- "description": "APPROVED",
- "action": "charge",
- "mode": "sale",
- "status": "success",
- "amount": 9.99,
- "currency": "USD",
- "orderId": "235324530",
- "transactionId": "12345",
- "descriptor": "centrohelp.com",
- "source": {
- "method": "card",
- "number": "402400****6348",
- "brand": "visa",
- "paymentAccountId": "d86bdcbb-c369-46d9-a9d0-9c5010e3bfdb"
}
}, - "consumer": {
- "id": "string",
- "externalId": "14253ms92m0as",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "phone": "+1987353539",
- "country": "string",
- "state": "string",
- "city": "string",
- "zip": "36101"
}, - "subscription": {
- "id": "string",
- "status": "active",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "cycle": 0
}, - "metadata": {
- "foo": "bar"
}
}
{- "payment": {
- "code": "0",
- "description": "APPROVED",
- "action": "charge",
- "mode": "sale",
- "status": "success",
- "amount": 9.99,
- "currency": "USD",
- "orderId": "235324530",
- "transactionId": "12345",
- "descriptor": "centrohelp.com",
- "source": {
- "method": "card",
- "number": "402400****6348",
- "brand": "visa",
- "paymentAccountId": "d86bdcbb-c369-46d9-a9d0-9c5010e3bfdb"
}
}, - "consumer": {
- "id": "string",
- "externalId": "14253ms92m0as",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "phone": "+1987353539",
- "country": "string",
- "state": "string",
- "city": "string",
- "zip": "36101"
}, - "subscription": {
- "id": "string",
- "status": "active",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "cycle": 0
}, - "metadata": {
- "foo": "bar"
}
}
id required | string Transaction that should be credited |
X-Request-ID | string Unique ID of request |
amount required | number <double> (Amount of operation) |
reason required | string (Reason of operation) [ 3 .. 64 ] characters |
{- "amount": 9.99,
- "reason": "Retention offer"
}
{- "payment": {
- "code": 0,
- "description": "APPROVED",
- "mode": "credit",
- "status": "success",
- "transactionId": "12345",
- "descriptor": "example.com",
- "source": {
- "method": "card",
- "number": "402400****6348",
- "brand": "visa"
}
}
}
X-Request-ID | string Unique ID of request |
consumerId required | string [ 5 .. 36 ] characters |
paymentAccountId | string <uuid> |
parameters | object List of additional payout parameters |
amount required | number <double> (Amount of operation) |
currency required | string <iso3> (Currency (ISO 4217)) |
object | |
metadata | object (Metadata) Used for storing additional structured information associated with payment |
{- "consumerId": "410980353089024",
- "paymentAccountId": "d86bdcbb-c369-46d9-a9d0-9c5010e3bfdb",
- "amount": 9.99,
- "currency": "USD",
- "metadata": {
- "foo": "bar"
}
}
{- "payment": {
- "code": "0",
- "description": "APPROVED",
- "action": "charge",
- "mode": "payout",
- "status": "success",
- "amount": 9.99,
- "currency": "USD",
- "orderId": 235324530,
- "transactionId": "12345",
- "source": {
- "method": "card",
- "number": "402400****6348",
- "brand": "visa"
}
}, - "consumer": {
- "id": "string",
- "externalId": "14253ms92m0as",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "phone": "+1987353539",
- "country": "string",
- "state": "string",
- "city": "string",
- "zip": "36101"
}, - "metadata": {
- "foo": "bar"
}
}
id required | string (Subscription ID) [ 5 .. 36 ] characters Subscription ID |
X-Request-ID | string Unique ID of request |
{- "id": "string",
- "status": "active",
- "type": "trial",
- "cycle": 0,
- "skuName": "TEST_EN",
- "siteId": "983759353",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "consumerId": "string"
}
id required | string (Subscription ID) [ 5 .. 36 ] characters Subscription ID |
X-Request-ID | string Unique ID of request |
Array of objects (Price) |
{- "price": [
- {
- "offset": "5d",
- "amount": 9.99,
- "currency": "USD",
- "repeat": true
}
]
}
{- "id": "string",
- "status": "active",
- "type": "trial",
- "cycle": 0,
- "skuName": "TEST_EN",
- "siteId": "983759353",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "consumerId": "string"
}
id required | string (Subscription ID) [ 5 .. 36 ] characters Subscription ID |
X-Request-ID | string Unique ID of request |
cancelDate | string or null <date-time> (Date of cancel) In case if cancelDate is not passed or null, subscription will canceled immediately |
{- "cancelDate": "2020-11-17 13:43:02"
}
{- "id": "string",
- "status": "active",
- "type": "trial",
- "cycle": 0,
- "skuName": "TEST_EN",
- "siteId": "983759353",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "consumerId": "string"
}
id required | string (Subscription ID) [ 5 .. 36 ] characters Subscription ID |
X-Request-ID | string Unique ID of request |
{- "id": "string",
- "status": "active",
- "type": "trial",
- "cycle": 0,
- "skuName": "TEST_EN",
- "siteId": "983759353",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "consumerId": "string"
}
X-Request-ID | string Unique ID of request |
name | string (Site name) URL without protocol prefix |
externalId | string (Merchant site ID) [ 3 .. 36 ] characters |
ipnUrl | string <url> (URL) Callback Notification will be sent to this URL after purchase |
redirectUrl | string <url> (URL) User will be redirect to this URL after purchase |
{- "name": "example.com",
- "externalId": "14253ms92m0as",
}
{- "id": "983759353",
- "name": "example.com",
- "externalId": "14253ms92m0as",
- "createdAt": "2020-04-17 13:43:02",
- "updatedAt": "2020-11-17 13:43:02"
}
id required | string (Centrobill's site id) [ 5 .. 36 ] characters Example: 983759353 |
X-Request-ID | string Unique ID of request |
{- "id": "983759353",
- "name": "example.com",
- "externalId": "14253ms92m0as",
- "createdAt": "2020-04-17 13:43:02",
- "updatedAt": "2020-11-17 13:43:02"
}
id required | string (Centrobill's site id) [ 5 .. 36 ] characters Example: 983759353 |
X-Request-ID | string Unique ID of request |
name | string (Site name) URL without protocol prefix |
externalId | string (Merchant site ID) [ 3 .. 36 ] characters |
ipnUrl | string <url> (URL) Callback Notification will be sent to this URL after purchase |
redirectUrl | string <url> (URL) User will be redirect to this URL after purchase |
{- "name": "example.com",
- "externalId": "14253ms92m0as",
}
{- "id": "983759353",
- "name": "example.com",
- "externalId": "14253ms92m0as",
- "createdAt": "2020-04-17 13:43:02",
- "updatedAt": "2020-11-17 13:43:02"
}
X-Request-ID | string Unique ID of request |
title required | string (Product (SKU) description) [ 3 .. 128 ] characters Description will be displayed on payment page | ||||||
externalId | string (Merchant SKU ID) [ 3 .. 36 ] characters | ||||||
type required | any (Type of product (SKU)) Enum: "one-time" "subscription"
| ||||||
required | Amount of operation (number) or Array of Price (objects) (Price) Use "Amount of product" definition for "one-time" type, "Price object" for "subscription" type | ||||||
currency | string <iso3> (Currency (ISO 4217)) |
{- "title": "Annual subscription",
- "externalId": "7f9s7f9sfs9",
- "type": "one-time",
- "price": 9.99,
- "currency": "USD"
}
{- "name": "TEST_EN",
- "siteId": "983759353",
- "externalId": "14253ms92m0as",
- "title": "string",
- "type": "one-time",
- "price": 9.99,
- "currency": "USD",
- "createdAt": "2020-04-17 13:43:02",
- "updatedAt": "2020-11-17 13:43:02"
}
name required | string (Centrobill SKU) [ 5 .. 36 ] characters Example: TEST_EN |
X-Request-ID | string Unique ID of request |
{- "name": "TEST_EN",
- "siteId": "983759353",
- "externalId": "14253ms92m0as",
- "title": "string",
- "type": "one-time",
- "price": 9.99,
- "currency": "USD",
- "createdAt": "2020-04-17 13:43:02",
- "updatedAt": "2020-11-17 13:43:02"
}
name required | string (Centrobill SKU) [ 5 .. 36 ] characters Example: TEST_EN |
X-Request-ID | string Unique ID of request |
title required | string (Product (SKU) description) [ 3 .. 128 ] characters Description will be displayed on payment page | ||||||
externalId | string (Merchant SKU ID) [ 3 .. 36 ] characters | ||||||
type required | any (Type of product (SKU)) Enum: "one-time" "subscription"
| ||||||
required | Amount of operation (number) or Array of Price (objects) (Price) Use "Amount of product" definition for "one-time" type, "Price object" for "subscription" type | ||||||
currency | string <iso3> (Currency (ISO 4217)) |
{- "title": "Annual subscription",
- "externalId": "7f9s7f9sfs9",
- "type": "one-time",
- "price": 9.99,
- "currency": "USD"
}
{- "message": "Bad Request",
- "errors": {
- "parameterName": "Parameter is invalid or missing"
}
}
X-Request-ID | string Unique ID of request |
externalId required | string (Merchant consumer id) [ 3 .. 36 ] characters | ||||||||||||
username | string (Consumer username) [ 1 .. 255 ] characters | ||||||||||||
string <email> (Consumer email) | |||||||||||||
firstName | string (Consumer first name) [ 1 .. 32 ] characters | ||||||||||||
lastName | string (Consumer last name) [ 1 .. 32 ] characters | ||||||||||||
country | string <iso3> (Consumer's country) | ||||||||||||
groupId | any (Consumer group ID) Enum: 1 2 3 4 5
|
null
{- "id": "string",
- "externalId": "14253ms92m0as",
- "username": "string",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "country": "string",
- "groupId": 1
}
id required | string (Consumer ID) [ 5 .. 36 ] characters |
X-Request-ID | string Unique ID of request |
{- "id": "string",
- "externalId": "14253ms92m0as",
- "username": "string",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "country": "string",
- "groupId": 1
}
id required | string (Consumer ID) [ 5 .. 36 ] characters |
X-Request-ID | string Unique ID of request |
groupId | any (Consumer group ID) Enum: 1 2 3 4 5
|
{- "groupId": 1
}
{- "id": "string",
- "externalId": "14253ms92m0as",
- "username": "string",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "country": "string",
- "groupId": 1
}
{- "id": 1234,
- "type": "visa",
- "emulate3ds": true,
- "number": "4024007179366348",
- "balance": 44,
- "blocked": true,
- "allowedIps": [ ],
- "createdAt": "2022-01-27 10:11:39",
- "updatedAt": "2022-01-27 10:11:39"
}
limit | integer Per page limit |
type | string Type of the test payment data |
{- "id": 1234,
- "type": "visa",
- "emulate3ds": false,
- "number": "4024007179366348",
- "balance": 44,
- "blocked": false,
- "allowedIps": [ ],
- "createdAt": "2022-01-27 10:11:39",
- "updatedAt": "2022-01-27 10:11:39"
}
balance | integer [ 1 .. 6 ] characters Desired balance of the test payment data |
{- "balance": 0
}
{- "id": 1234,
- "type": "visa",
- "emulate3ds": true,
- "number": "4024007179366348",
- "balance": 44,
- "blocked": true,
- "allowedIps": [ ],
- "createdAt": "2022-01-27 10:11:39",
- "updatedAt": "2022-01-27 10:11:39"
}
type required | string [ 5 .. 36 ] characters Type of the test payment data |
emulate3ds | boolean True if needs to emulate also 3Ds for this test payment data |
balance | integer [ 1 .. 4 ] characters Balance of the test payment details |
allowedIps | array Allowed IPs array |
{- "type": "visa",
- "emulate3ds": "true",
- "balance": "44"
}
{- "id": 1234,
- "type": "visa",
- "emulate3ds": true,
- "number": "4024007179366348",
- "balance": 44,
- "blocked": true,
- "allowedIps": [ ],
- "createdAt": "2022-01-27 10:11:39",
- "updatedAt": "2022-01-27 10:11:39"
}
{- "id": 1234,
- "type": "visa",
- "emulate3ds": true,
- "number": "4024007179366348",
- "balance": 44,
- "blocked": true,
- "allowedIps": [ ],
- "createdAt": "2022-01-27 10:11:39",
- "updatedAt": "2022-01-27 10:11:39"
}
{- "id": 1234,
- "type": "visa",
- "emulate3ds": true,
- "number": "4024007179366348",
- "balance": 44,
- "blocked": true,
- "allowedIps": [ ],
- "createdAt": "2022-01-27 10:11:39",
- "updatedAt": "2022-01-27 10:11:39"
}
id required | any Test payment data ID |
emulate3ds | boolean Should be True if emulate 3Ds and False when not emulate |
{- "emulate3ds": true
}
{- "message": "Unauthorized`"
}
id required | any Test payment data ID |
emulate3ds | boolean Should be True if emulate 3Ds and False when not emulate |
{- "emulate3ds": true
}
{- "message": "Internal server error"
}
phone | string (Consumer's phone number) [ 7 .. 16 ] characters Example: +1987353539 |
X-Request-ID | string Unique ID of request |
[- "sms",
- "telegram",
- "whatsapp"
]
channel required | string Channel of message |
X-Request-ID | string Unique ID of request |
phone required | string (Consumer's phone number) [ 7 .. 16 ] characters |
from | string [ 3 .. 16 ] characters |
{- "phone": "+1987353539",
- "from": "Centrobill"
}
{- "message": "Bad Request",
- "errors": {
- "parameterName": "Parameter is invalid or missing"
}
}
phone required | string (Consumer's phone number) [ 7 .. 16 ] characters Example: +1987353539 |
code required | string Verification code |
X-Request-ID | string Unique ID of request |
{- "message": "Bad Request",
- "errors": {
- "parameterName": "Parameter is invalid or missing"
}
}
X-Request-ID | string Unique ID of request |
required | Array of SKU object with site id (object) or SKU object with SKU name (object) or SKU object with SKU name and custom prices (object) |
object (Consumer) | |
object (Template) | |
object (Payment) | |
metadata | object (Metadata) Used for storing additional structured information associated with payment |
ttl | integer (Lifetime in seconds of payment page. By default 600) |
emailOptions | object (Email Options) |
{- "sku": [
- {
- "name": "TEST_EN_00",
- "siteId": "1811",
- "price": [
- {
- "offset": "0d",
- "amount": 29.37,
- "currency": "USD",
- "repeat": false
}, - {
- "offset": "60d",
- "amount": 50,
- "currency": "USD",
- "repeat": false
}, - {
- "offset": "30d",
- "amount": 30,
- "currency": "USD",
- "repeat": true
}
], - "currency": "USD",
- "title": "30 day recurring + First 30 Days For Free",
- "url": {
}
}
], - "consumer": {
- "id": "59024134",
- "externalId": "some-12958305390",
- "firstName": "John",
- "lastName": "Doe",
- "email": "someuser2020130110@google.com"
}, - "payment": {
- "method": [
- "card",
- "sepa"
], - "selected": "card",
- "secure": true,
- "test": false,
- "mid": "s938503530f"
}, - "metadata": {
- "trackingId": "98530968732-93625235"
}, - "emailOptions": {
- "send": true
}, - "ttl": 1200
}
{
}
{- "payment": {
- "code": "0",
- "description": "APPROVED",
- "action": "charge",
- "mode": "sale",
- "status": "success",
- "amount": 9.99,
- "currency": "USD",
- "orderId": "235324530",
- "transactionId": "12345",
- "descriptor": "centrohelp.com",
- "source": {
- "method": "card",
- "number": "402400****6348",
- "brand": "visa",
- "paymentAccountId": "d86bdcbb-c369-46d9-a9d0-9c5010e3bfdb"
}
}, - "consumer": {
- "id": "string",
- "externalId": "14253ms92m0as",
- "email": "jonny.sonny@google.com",
- "firstName": "string",
- "lastName": "string",
- "phone": "+1987353539",
- "country": "string",
- "state": "string",
- "city": "string",
- "zip": "36101"
}, - "subscription": {
- "id": "string",
- "status": "active",
- "renewalDate": "2020-04-17 13:43:02",
- "cancelDate": "2020-11-17 13:43:02",
- "cycle": 0
}, - "metadata": {
- "foo": "bar"
}
}