1MSG

Payment request

POST
/sendPaymentRequest

Отправляет интерактивный запрос на оплату (beta) для региона IN, SG или BR.

Форма payload следует документации Meta для региональных платежей; проверьте на stage перед production. Нужно открытое 24-часовое окно сессии.

Authorization

JWT token
querytoken<token>

Request Body

application/json
  1. body
phone*integer

Recipient phone (digits, country code, no +). Alias: to.

region*string

Payment region. Determines the interactive payload shape.

Value in"IN""SG""BR"
body?string

Message text shown with the payment request

interactive?

Optional Meta interactive payment payload. Forwarded upstream.

action?

Optional payment action object when not using interactive.

to?string

Recipient alias for phone (digits, country code, no +).

[key: string]?any

Response Body

Send result

application/json
  1. response
sent?boolean
id?string

WABA message id when sent

message?string
region?string
Value in"IN""SG""BR"
[key: string]?any
curl -X POST 'https://api.1msg.io/123/sendPaymentRequest' \  -H 'Content-Type: application/json' \  -d '{  "phone": 919876543210,  "region": "IN",  "body": "Please complete the payment"}'
{  "sent": true,  "id": "wamid.HBgLdemo",  "message": "Sent to 919876543210",  "region": "IN"}