curl 'https://uat-api.alps.cl/v1/transactions/'
--header 'Authorization: ALPS {TOKEN}'
--header 'Content-Type: application/json'
--data-raw '[{
"order_id": "2025041702",
"credit_note": "2025041702",
"account_id": "51903568310",
"account_type": "Savings",
"vat_id": "06687333",
"name": "John Doe",
"amount": 1.5,
"subject": "PAYOUT YAPE",
"bank_detail": "PAYOUT YAPE",
"channel": "Transferencia",
"user_email": "[email protected]",
"phone_number": "+51902297777",
"bank": "1063",
"vat_id_type": "dni"
}]'
import requests
url = "https://uat-api.alps.cl/v1/transactions/"
headers = {
"Authorization": "ALPS {TOKEN}",
"Content-Type": "application/json"
}
payload = [
{
"order_id": "2025041702",
"credit_note": "2025041702",
"account_id": "51903568310",
"account_type": "Savings",
"vat_id": "06687333",
"name": "John Doe",
"amount": 1.5,
"subject": "PAYOUT YAPE",
"bank_detail": "PAYOUT YAPE",
"channel": "Transferencia",
"user_email": "[email protected]",
"phone_number": "+51902297777",
"bank": "1063",
"vat_id_type": "dni",
}
]
response = requests.post(url, headers=headers, json=payload)
print(response.text)