Transfers

Create order (SCA)

POST2FA/v2/social-pay/order
2FA

This operation may require two-factor authentication via the x-totp and x-totp-type headers. See Two-factor authentication.

Creates a new social payment order. Requires 2FA via the x-totp header. When TOTP is missing, returns HTTP 428. When TOTP doesn't match, returns HTTP 420. Stablecoin operations may require SCA PIN verification.

Authorization

ApiKeyAuth
X-Api-Key<token>

For accessing these endpoints a valid API key must be sent in the X-Api-Key header.

In: header

Header Parameters

x-totp?string

TOTP verification code

Match^[0-9]{4,6}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

Create order (SCA)
curl --request POST \  --url 'https://gateway.bit2me.com/v2/social-pay/order' \  --header 'Content-Type: application/json' \  --data '{  "amount": "2.00000000",  "currency": "EUR",  "email": "recipient@example.com",  "pocketId": "9ca6cf96-4645-4658-b086-6cdb367c16bd",  "type": "email"}'
{  "amount": "2.00000000",  "createdAt": "2023-02-14T11:30:38.918Z",  "currency": "EUR",  "email": "recipient@example.com",  "expiryDate": "2023-02-21T11:30:38.912Z",  "orderId": "25e9349b-4039-4865-b306-56f3a2e1b916",  "pocketId": "9ca6cf96-4645-4658-b086-6cdb367c16bd",  "senderName": "Pineapple S.",  "status": "pending",  "statusChanges": [    {      "author": "00000000-0000-4000-8000-000000000001",      "created": "2023-02-14T11:30:38.914Z",      "newStatus": "waiting-funds",      "reason": "Order created"    },    {      "author": "00000000-0000-4000-8000-000000000001",      "created": "2023-02-14T11:30:39.158Z",      "newStatus": "pending",      "reason": "Order accepted"    }  ],  "type": "email",  "userId": "61afcba0-6152-4af6-8610-4bebc915249e",  "walletMovementId": "7a24b421-c92a-401c-9104-171a60cbe64d"}