POST
/
payments
curl --request POST \
  --url https://paysum.dev/api/v1/payments \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "shopId": "01JWJBQ4HZ8G6VJB590G4A3DCQ",
  "gateway": "STRIPE",
  "cost": 99,
  "currency": "EUR",
  "quantity": 1,
  "email": "customer@gmail.com",
  "custom_fields": {
    "username": "software-username"
  },
  "products": [
    "01JXB9BZ1B4S9QQ5SCVZC4D9B7"
  ]
}'
{
  "name": "<string>",
  "tag": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json

payment JSON to be created

The body is of type object.

Response

200
application/json

plant response

The response is of type object.