AnSpacePay
The fastest and most complete payment platform on the market
Website: anspacepay.com
Set up Account
Step 1: Create merchant account
To create an account send connection request at the anspacepay.com or contact manager directly. Submit the required documents to verify your account and gain access.
Step 2: Get required credentials
Credentials that have to be issued:
- Username
- Password
- Application token
- Security token → for payouts
Connect Provider Account
Step 1. Connect Provider account at the Corefy Dashboard
Press Connect at AnSpacePay Provider Overview page in 'New connection' section and choose Provider account option to open Connection form.
Enter credentials:
- username → Username
- password → Password
- application_token → Application token
- security_token → Security token (for payouts)
Success
You have connected AnSpacePay Provider account!
API examples for payments:
Maximum data set to create a payment invoices
POST /api/commerce/payment-invoices HTTP/1.1
{
"data": {
"type": "payment-invoice",
"attributes": {
"service": "pix_brl_hpp",
"commerce_account": "hello world",
"currency": "BRL",
"amount": 152,
"flow": "charge",
"customer": {
"reference_id": "f1fd757b-08d5-40ed-8c6e-7c3985681ef0",
"name": "John Doe",
"email": "[email protected]",
"address": {
"full_address": "Baker street 221B",
"country": "GB",
"region": "London",
"city": "London",
"street": "Baker",
"post_code": "12345"
}
},
"test_mode": false,
"options": {
"allow_partially": false
},
"reference_id": "124058c9-cab1-44d2-b660-55dbdb1ff67b",
"service_fields": {
"cpf_number": "87397163769"
}
}
}
}
Minimum data set to create a payment invoices
POST /api/commerce/payment-invoices HTTP/1.1
{
"data": {
"type": "payment-invoice",
"attributes": {
"service": "pix_brl_hpp",
"commerce_account": "hello world",
"currency": "BRL",
"amount": 151,
"flow": "charge",
"customer": {
"reference_id": "56dba9a1-1433-42d6-8513-e28563a35aed",
"name": "John Doe"
},
"test_mode": false,
"options": {
"allow_partially": false
},
"reference_id": "f1e9791f-3319-4298-85aa-57348c173230",
"service_fields": {
"cpf_number": "87397163769"
}
}
}
}
API example for payouts:
Data set to create a payout invoices
POST /api/commerce/payout-invoices HTTP/1.1
{
"data": {
"type": "payout-invoice",
"attributes": {
"service": "pix_brl",
"commerce_account": "hello world",
"currency": "BRL",
"amount": 1,
"test_mode": false,
"reference_id": "5da36d3e-e9eb-419f-8786-326bcbeaa6fd",
"fields": {
"cpf_number": "2",
"beneficiary_name": "John",
"beneficiary_lastname": "Doe",
"pix_key": "1qwe"
},
"options": {
"attempts_limit": 0,
"split_mode": false,
"allow_partially": false,
"auto_process": false
}
}
}
}
Additional information
Constants for payments
If some parameters are not sent in the transaction creation request, they will take the values from the set constants.
Here is a list of constants with their corresponding parameters:
- GENERAL_DEFAULT_VALUE → constants [general_default_value]
Still looking for help connecting your AnSpacePay account?