Skip to content

Instantly share code, notes, and snippets.

@mgiacomini
Created June 12, 2019 17:28
Show Gist options
  • Save mgiacomini/fa12ff4ef5ab10bb003a3aa0dad98a6f to your computer and use it in GitHub Desktop.
Save mgiacomini/fa12ff4ef5ab10bb003a3aa0dad98a6f to your computer and use it in GitHub Desktop.
ebanx split
curl -X POST 'https://staging.ebanx.com.br/ws/direct' \
-d 'request_body={
"integration_key": "<bcredi-integration-key>",
"operation": "request",
"payment": {
"name": "José Silva",
"email": "[email protected]",
"document": "853.513.468-93",
"address": "Rua E",
"street_number": "1040",
"city": "Maracanaú",
"state": "CE",
"zipcode": "61919-230",
"country": "br",
"phone_number": "8522847035",
"payment_type_code": "boleto",
"merchant_payment_code": "a92253f29db",
"currency_code": "BRL",
"amount_total": 100,
"split": [
{
"recipient_code": "your_unique_recipient_code",
"amount": 50,
"liable": true,
"charge_fee": true
},
{
"recipient_code": "your_second_unique_recipient_code",
"amount": 50,
"liable": false,
"charge_fee": false
}
]
}
}'
{"status":"ERROR","status_code":"BP-DR-130","status_message":"Split parameter error. One or more Merchant recipient(s) are invalid."}
@mgiacomini
Copy link
Author

@erichnascimento deu certo. thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment