1. v1
Potapay(English)
  • Interface description
  • appoint
  • Signature & Signature Algorithm
  • Test parameter
  • Error code
  • v1
    • Create invoice order
      POST
    • Create a payment order
      POST
    • Order inquiry
      POST
    • Account balance inquiry
      POST
    • Certificate query
      POST
  • v2
    • Mexico
      • List of Mexican banks
      • Test parameters
      • Query
        • Order Inquiry
        • Account Balance Inquiry
        • Voucher Inquiry
      • Create a invioce order
      • Create a payment order
    • Brazil
      • Create invioce order
      • Create payment order - no query restrictions
      • Create payment order
      • Order inquiry
      • Account balance inquiry
      • Certificate query
  • webhook Request
    POST
  • Schemas
    • payin parameters
    • payin parameters v2
    • payout parameters
    • order query
    • balance query
    • webhook
    • proof query
    • payout manual
  1. v1

Create invoice order

POST
{{host}}/invoice/v1/create
Determine whether the order creation is successful based on the http status code
200 Success
400 Parameter error
401 Account or IP cannot be used
500 Server status abnormal
503 Server status abnormal
For specific error codes, refer to the error code

Request

Header Params

Body Params application/json

Example
{
    "mchOrderNo": "test-invoice-000017",
    "amount": 10000,
    "name": "jack",
    "idNumber": "123123123",
    "phone": "+551234567890",
    "email": "jack@example.com",
    "subject": "macbook",
    "body": "one laptap",
    "notifyUrl": "https://webhook.site/8f874726-a8c3-458b-8525-0abb921f243a",
    "successUrl": "https://www.success-url.com"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff 'https://gateway.potawallet.com/invoice/v1/create' \
--header 'X-Account: b5373276-3924-4fbb-8845-acd15e910543' \
--header 'X-Signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "mchOrderNo": "test-invoice-000017",
    "amount": 10000,
    "name": "jack",
    "idNumber": "123123123",
    "phone": "+551234567890",
    "email": "jack@example.com",
    "subject": "macbook",
    "body": "one laptap",
    "notifyUrl": "https://webhook.site/8f874726-a8c3-458b-8525-0abb921f243a",
    "successUrl": "https://www.success-url.com"
}'

Responses

🟢200success
application/json
Bodyapplication/json

Example
{
    "orderNo": "IV20230802070629-00127",
    "orderAmount": 100,
    "amount": 99,
    "fee": 1,
    "reference": "00020126940014br.gov.bcb.pix2572qrcodes-h.sulcredi.coop.br/v2/v3/at/f77a5a62-3ffd-4f84-9a85-ca34c36edc4e5204000053039865802BR5907VIATECH6003SMO62070503***6304BDF9",
    "url": "https://pix.potawallet.com/?param=2s1yrqTYGD2E0-uFlxJc4laqq8dXjZnlGxWh8XnwZh0="
}
Modified at 2026-02-10 13:22:46
Previous
Error code
Next
Create a payment order
Built with