curl --request POST \
--url https://api.preprod.alignet.io/charges \
--header 'ALG-API-VERSION: <alg-api-version>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "authorize",
"channel": "ecommerce",
"merchant_code": "your_merchant_code",
"merchant_operation_number": "2391645",
"payment_method": {
"method_name": "CARD",
"method_details": {
"pan": "4051420006041115",
"expiry_date": "1231",
"security_code": "123",
"card_holder": {
"first_name": "Pedro",
"last_name": "Miranda",
"email": "pedro@pay-me.com",
"phone": {
"prefix": "51",
"number": "999835685"
}
},
"installments": {
"plan": "01",
"number": "3"
}
}
},
"payment_details": {
"amount": "15000",
"currency": "604",
"billing": {
"first_name": "Pedro",
"last_name": "Miranda",
"email": "pedro@pay-me.com",
"phone": {
"country_code": "+51",
"subscriber": "999835685"
},
"location": {
"line_1": "Av. Casimiro Ulloa 333",
"line_2": "Miraflores",
"city": "Lima",
"state": "Lima",
"country": "Peru"
}
},
"shipping": {
"first_name": "Pedro",
"last_name": "Miranda",
"email": "pedro@pay-me.com",
"phone": {
"country_code": "+51",
"subscriber": "999835685"
},
"location": {
"line_1": "Av. Casimiro Ulloa 333",
"line_2": "Miraflores",
"city": "Lima",
"state": "Lima",
"country": "Peru"
}
},
"customer": {
"first_name": "Pedro",
"last_name": "Miranda",
"email": "pedro@pay-me.com",
"phone": {
"country_code": "+51",
"subscriber": "999835685"
},
"location": {
"line_1": "Av. Casimiro Ulloa 333",
"line_2": "Miraflores",
"city": "Lima",
"state": "Lima",
"country": "Peru"
}
},
"product_details": []
}
}
'