Costa Rica
Example PayOut Request and Response
Last updated
Example PayOut Request and Response
Last updated
POST
https://api.stage.localpayment.com /api/payout
Create a payout order
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"externalId": "{{ExternalId}}",
"internalId": "{{InternalId}}",
"paymentMethod": {
"code": "0070",
"name": "SINPE",
"description": "SINPE",
"paymentMethodType": "BankTransfer"
},
"country": "CRI",
"currency": "CRC",
"amount": 1030.63,
"accountNumber": "{{YourAccountNumber}}",
"clientCode": "0001",
"clientName": "Acme",
"status": {
"code": "100",
"description": "Received",
"detail": "The payout was received"
},
"beneficiary": {
"bank": {
"name": "Banco Bac San José",
"code": "0102",
"countryISOCode3": null,
"branch": null,
"account": {
"number": "{{AccountNumber}}",
"type": "C",
"alias": null,
"pixKey": null,
"phone": null
}
},
"type": "COMPANY",
"name": "Empresa ",
"lastname": null,
"document": {
"type": "RUT",
"id": "12345678-000"
},
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name",
"lastname": null,
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastname": "Sender LastName",
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"comment": null,
"exchangeRateToken": null,
"date": {
"creationDate": "2023-12-14T15:55:00.6462479+00:00",
"processedDate": "2023-12-14T15:55:00.7365273+00:00"
},
"errors": null
}
{
"externalId": "1111111",
"internalId": "2ab9af37-27df-4fe5-1111-890b80029224",
"status": {
"code": "812",
"description": "Rejected",
"detail": "External Id already used - duplication"
},
"errors": [
{
"code": "812",
"description": "External Id already used - duplication"
},
{
"code": "300",
"description": "Invalid param + [merchant.[type, name]] + must not be null"
}
],
"comment": ""
}
{
"externalId": "{{externalId}}",
"country": "CRI",
"currency": "CRC",
"amount": 10,
"paymentMethod": {
"type": "BankTransfer",
"code": "0070",
"flow": "direct"
},
"beneficiary": {
"name": "Empresa ",
"type": "COMPANY",
"document": {
"type": "RUT",
"id": "12345678-111"
},
"bank": {
"name": "Banco Bac San José",
"code": "0102",
"account": {
"number": "{{YourAccountNumber}}",
"type": "C"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastName": "Sender LastName"
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name"
},
"accountNumber":"{{accountNumber}}",
"conceptCode": "0001"
}
{
"externalId": "{{ExternalId}}",
"internalId": "{{InternalId}}",
"paymentMethod": {
"code": "0070",
"name": "SINPE",
"description": "SINPE",
"paymentMethodType": "BankTransfer"
},
"country": "CRI",
"currency": "CRC",
"amount": 1030.63,
"accountNumber": "{{YourAccountNumber}}",
"clientCode": "0001",
"clientName": "Acme",
"status": {
"code": "100",
"description": "Received",
"detail": "The payout was received"
},
"beneficiary": {
"bank": {
"name": "Banco Bac San José",
"code": "0102",
"countryISOCode3": null,
"branch": null,
"account": {
"number": "{{AccountNumber}}",
"type": "C",
"alias": null,
"pixKey": null,
"phone": null
}
},
"type": "COMPANY",
"name": "Empresa ",
"lastname": null,
"document": {
"type": "RUT",
"id": "15334701-000"
},
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name",
"lastname": null,
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastname": "Sender LastName",
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"comment": null,
"exchangeRateToken": null,
"date": {
"creationDate": "2023-12-14T15:55:00.6462479+00:00",
"processedDate": "2023-12-14T15:55:00.7365273+00:00"
},
"errors": null
}
{
"externalId": "1111111111",
"internalId": "2ab9af37-27df-4fe5-1111-890b80029224",
"status": {
"code": "812",
"description": "Rejected",
"detail": "External Id already used - duplication"
},
"errors": [
{
"code": "812",
"description": "External Id already used - duplication"
},
{
"code": "300",
"description": "Invalid param + [merchant.[type, name]] + must not be null"
}
],
"comment": ""
}