RASPay GATEWAY DOCS
  • Welcome
  • AUTHENTICATION
    • Credentials
    • Token
  • PAYMENT
    • PIX
      • Create PIX
  • WITHDRAW
    • PIX
      • Create Withdraw (CPF)
  • REPORT PAYMENT
    • PIX
      • List PIX Payment
      • Get PIX Payment
      • Get Pix Payment By E2E ID
  • REPORT WITHDRAW
    • PIX
      • List PIX Withdraw
      • Get PIX Withdraw
  • NOTIFICATION
    • Webhook
Powered by GitBook
On this page
  1. WITHDRAW
  2. PIX

Create Withdraw (CPF)

Create

POST https://gateway-pix.raspay.com.br/production/v3/withdraw/pix/cpf

Headers

Name
Type
Description

Authorization*

string

Bearer Token got from Auth endpoint

Content-Type*

string

application/json

Request Body

Name
Type
Description

value*

double

cpf

string

pix_key_type*

object

pix_key*

string

webhook_url*

string

{
    "id": "5e16db1b-998a-45aa-9143-fb71cab2469a",
    "value": 1.50,
    "receiver_name": "John Doe",
    "receiver_cpf": "00000000000",
    "pix_key_type": "EVP",
    "pix_key": "cb499c34-e6c0-4691-a087-5a2e1cef6889",
    "status": "CREATED",
    "merchant": {
        "id": "3",
        "name": "Test"
    }
}
{
    "error": {
        "name": "TOKEN_ERROR",
        "message": "Not Authorized",
        "route": "/v3/withdraw/pix",
        "date": "2021-04-27T20:21:47.311Z"
    }
}
{
  "error": {
    "name": "VALIDATION ERROR",
    "message": "Validation Errors",
    "frames": [
      "The minimum value is 100 - R$1,00",
      "document must be of type String",
      "document required"
    ]
  }
}
curl --request POST \
  --url https://gateway-pix.raspay.com.br/production/v3/withdraw/pix/cpf \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJuYW1lIjoiSm9obiBkb2UiLCJ1c2VybmFtZSI6ImpvaG5kb2UiLCJjb2RlIjoiMDAwMCIsImtleSI6ImpvaG5kb2VAcmFzLmJ1c2luZXNzIiwic3RhdHVzIjoidHJ1ZSIsImlhdCI6MTYxNzkwMjc2MiwiZXhwIjoxNjE3OTA2MzYyfQ.KS1gA6eNgdU6w6nCwoRE1zPLHnelGtE57uWohLlkS8o' \
  --header 'Content-Type: application/json' \
  --data-raw '{
	"value": 1.50,
	"cpf": "00000000000",
	"pix_key_type": "EVP",
        "pix_key": "cb499c34-e6c0-4691-a087-5a2e1cef6889"
	"webhook_url": "https://mywebsite.com.br/webhook"
}'
PreviousPIXNextPIX

Last updated 2 years ago