POST /v1/{{API_KEY}}/payoutsContent-Type: application/jsonHost: api-sandbox.bridgerpay.comAuthorization: Bearer {{ACCESS_TOKEN}}{"order_id": "a17331a4","provider": "PspName","country": "BE","currency": "EUR","state": null,"amount": 2723.00,"payout_method_type": "bank_account","metadata":{"bankCode": "AXABBE22","bankName": "AXA Bank Europe","bankBranch": "Bruxelles Trone""bankAddress": "Place du Trone, 1, 1000, Bruxelles, Belgium""bankZipcode": "12345","bankRoutingNumber": "123456789","bankAccountNumber": "12345678901234567890","bankAccountName": "Current account","phone": "+18419998877","customerFirstName": "John","customerLastName": "Smith","email": "[email protected]",}}
{"response": {"status": "OK", //Response status"code": 200, //Response code"message": "OK" //Comment associated with the response},"result": {"payout_method": "bank_account", //Payout method"html": null, //Not applicable"is_decoded": false, //Not applicable"email_instructions_enabled": null, //Redundant, will be removed"open_in_new_window": false, //Redundant, will be removed"id": "3c107b2c", //Transaction ID within the BridgerPay system"transaction_id": "9d4d9cdb", //Transaction ID within the PSP's system"amount": 2723.00, //Transaction amount"processing_date": "2020-08-04 10:31:20", //Date and time when the transaction was processed by BridgerPay"failure_code": null, //Not applicable"status": "Pending", //Transaction status"currency": "EUR", //Transaction currenty"payment_method": "bank_account" //Redundant, will be removed}}
{"response": {"status": "BadRequest","code": 400,"message": "400"},"result": [{"type": "validaton_error","field": "metadata.bankAccountName","message": "Value can not be empty"},{"type": "validation_error","field": "metadata.email","message": "Email is invalid"}]}
{"response": {"code": 401,"message": "merchant api key '<API_KEY>' is invalid"}}
POST /v1/{{API_KEY}}/payoutsContent-Type: application/jsonHost: api-sandbox.bridgerpay.comAuthorization: Bearer {{ACCESS_TOKEN}}{"order_id": "a17331a5","provider": "PspName","country": "BE","currency": "EUR","state": null,"amount": 1440.00,"payout_method_type": "credit_card","metadata":{"creditCardToken": "","creditCardNumber": "4012888888881881","cardHolderName": "John Smith","expiryMonth": 1,"expiryYear": 2022,"customerFirstName": "John","customerLastName": "Smith","email": "[email protected]"}}
{"response": {"status": "OK","code": 200,"message": "OK"},"result": {"payout_method": "credit_card","html": null,"is_decoded": false,"email_instruction_enabled": null,"open_in_new_window": false,"id": "40877f24","transaction_id": "85f9daa5","amount": 1440.00,"processing_date": "2020-08-20 05:44:49","failure_code": null,"status": "Approved","currency": "EUR","payment_method": "credit_card"}}