Server-to-server
Changed onRequest
- Base URLhttps://api.centrobill.com
- URLhttps://api.centrobill.com/payment
- AuthAPI key in header Authorization
Headers
Unique ID of request
Request body
Example request
{
"paymentSource": {
"type": "card",
"number": "4024007179366348",
"expirationMonth": "11",
"expirationYear": "22",
"cvv": "100",
"3ds": false
},
"parameters": {
"descriptor": "SOME SHOP>Berlin DE"
},
"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": {
"ipnUrl": "https://google.com/gateway/webhook/245252525252525",
"redirectUrl": "https://google.com/gateway/redirect/245252525252525"
},
"metadata": {
"foo": "bar"
},
"emailOptions": {
"send": true
}
}Response
Created
Example response
{
"payment": {
"description": "APPROVED",
"action": "charge",
"url": "https://google.com/oijhflsfs9",
"qrCode": "00020126910014BR.GOV.BCB.PIX2569api-pix-h.bancobs2.com.br/spi/v2/f8f7bd5e-d40a-40d1-ac98-4ec534c1bfc652040000530398654045.945802BR5925Visconde Pagamentos E Sol6014Belo Horizonte61083038040362070503***6304E381",
"mode": "sale",
"status": "success",
"amount": 9.99,
"currency": "USD",
"amountUsd": 9.99,
"orderId": "235324530",
"transactionId": "12345",
"descriptor": "centrohelp.com",
"network_transaction_id": "987654321098765",
"source": {
"method": "card",
"number": "402400****6348",
"brand": "visa",
"bankName": "BENDIGO AND ADELAIDE BANK, LTD",
"bankCountry": "AUS",
"paymentAccountId": "d86bdcbb-c369-46d9-a9d0-9c5010e3bfdb"
}
},
"consumer": {
"externalId": "14253ms92m0as",
"email": "jonny.sonny@google.com",
"phone": "+1987654320",
"country": "GBR",
"zip": "36101"
},
"subscription": {
"status": "active",
"renewalDate": "2020-04-17 13:43:02",
"cancelDate": "2020-11-17 13:43:02"
},
"metadata": {
"foo": "bar"
},
"timestamp": {
"dateTime": "2020-04-17 13:43:02",
"timezone": "UTC+02.00",
"unixTime": "1637063718"
}
}Changes
- breaking
removed
subschema #24: Banktransfer Chilefrom therequest propertyoneOflist - warning
added the new
blikenum value to the//response property for the response status - warning
added the new
cashappenum value to the//response property for the response status - warning
added the new
duitnowenum value to the//response property for the response status - warning
added the new
gojekidenum value to the//response property for the response status - warning
added the new
netellerenum value to the//response property for the response status - warning
added the new
offlinebankingenum value to the//response property for the response status - warning
added the new
pagoenum value to the//response property for the response status - warning
added the new
payconiqenum value to the//response property for the response status - warning
added the new
paynowenum value to the//response property for the response status - warning
added the new
promptpayenum value to the//response property for the response status - warning
added the new
rapidenum value to the//response property for the response status - warning
added the new
tossenum value to the//response property for the response status - warning
added the new
trustlyenum value to the//response property for the response status - warning
added the new
viettelpayenum value to the//response property for the response status - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
- info
added the new optional request property
- info
added
subschema #2: Codisubschema #5: DuitNowsubschema #8: Efectysubschema #10: Trustlysubschema #11: GoJekIdsubschema #14: Lotterysubschema #17: MBWaysubschema #18: Rapidsubschema #20: Multibancosubschema #23: Offlinebankingsubschema #26: Pagosubschema #29: Pago46subschema #32: Payconiqsubschema #34: Paynowsubschema #35: PicPaysubschema #38: Promptpaysubschema #40: Banktransfer ChileArgentinasubschema #41: Skrillsubschema #42: SPEIsubschema #44: Toditosubschema #47: Tosssubschema #49: Tpagasubschema #53: Cash Appsubschema #54: Bliksubschema #55: Vouchersubschema #56: Netellersubschema #57: Viettelpayto therequest propertyoneOflist - info
added the optional property
/to the response with the status - info
removed the
banktransferChileenum value from the//response property for the response status
- breaking