curl --location -g --request POST '/subscriptions/v1/card/{{subscriptionId}}/authorize' \
--header 'Private-Merchant-Id: {{MX-Private-Merchant-Id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": {
"ice": 0,
"iva": 0,
"subtotalIva": 0,
"subtotalIva0": 1000,
"currency": "MXN"
},
"name": "John",
"lastName": "Doe",
"email": "user@example.com",
"orderDetails": {
"siteDomain": "tuebook.com",
"shippingDetails": {
"name": "John Doe",
"phone": "+523912345678",
"address": "Eloy Alfaro 139 y Catalina Aldaz",
"city": "Querétaro",
"region": "Centro",
"country": "México",
"zipCode": "170402"
},
"billingDetails": {
"name": "John Doe",
"phone": "+523912345678",
"address": "Eloy Alfaro 139 y Catalina Aldaz",
"city": "Querétaro",
"region": "Centro",
"country": "México",
"zipCode": "170402"
}
},
"fullResponse": "v2"
}'{
"ticketNumber": "488892209101141831",
"details": {
"approvedTransactionAmount": 1000,
"requestAmount": 1000,
"responseCode": "000",
"approvalCode": "000000",
"syncMode": "online",
"merchantId": "20000000104111374000",
"processorId": "1000001041103567878316507278003",
"cardHolderName": "John Doe",
"binCard": "545195",
"merchantName": "Merchant MX",
"processorName": "BillPocket Processor",
"processorBankName": "0032~BANCO INTERNACIONAL",
"transactionId": "454501167520825260",
"lastFourDigits": "5480",
"binInfo": {
"bank": "BANCO DE LA PRODUCCION S.A. (PRODUBANCO)",
"type": "credit"
},
"paymentBrand": "MASTERCARD",
"subtotalIva": 0,
"subtotalIva0": 1000,
"currencyCode": "MXN",
"ivaValue": 0,
"cardCountry": "Ecuador",
"created": 1651242220,
"fullResponse": true,
"transactionStatus": "APPROVAL",
"transactionType": "PREAUTHORIZATION",
"transactionReference": "0356c7c3-deab-4da0-8a0d-4985009ffc39",
"acquirerBank": "BANJERCITO",
"rules": []
},
"transactionReference": "0356c7c3-deab-4da0-8a0d-4985009ffc39"
}