Change payment account for subscription
Changed onRequest
- Base URLhttps://api.centrobill.com
- URLhttps://api.centrobill.com/subscription/{id}/paymentAccount
- AuthAPI key in header Authorization
Path parameters
Gateway subscription ID
Headers
Unique ID of request
Request body
Example request
{
"paymentSource": {
"emulateCode": "5003",
"mpiParameters": {
"authStatus": "Y",
"cavv": "kBMSV/fB8ausrgK8Xem8wIQBeP88",
"eci": "02",
"directoryServerTransactionId": "3ba1f2c9-613b-4c00-80b1-ec8869690b26",
"scaExemption": "lowValue"
}
},
"consumer": {
"externalId": "14253ms92m0as",
"email": "jonny.sonny@google.com",
"phone": "+1987654320",
"country": "GBR",
"zip": "36101"
},
"url": {
"ipnUrl": "https://google.com/gateway/webhook/245252525252525",
"redirectUrl": "https://google.com/oijhflsfs9"
}
}Response
OK
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
- 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 optional property
/to the response with the status - info
removed the
banktransferChileenum value from the//response property for the response status
- warning