Skip to main content

Create

Creates a new invoice.

POST Invoice/Create

Input

ParameterTypeRequiredDescriptionDefault
MerchantIdstringyesyour merchant ID
OrderIdstringnoany string generated by you used to track the order in your systemnull
OrderAmountnumberyesthe order amount in orderCurrency
OrderCurrencystringnofiat order currency'USD'
UserNamestringnothe user's name to use for sending the payment linknull
UserEmailstringnothe user's email address to send the payment linknull
SubscriptionSubscriptionItem[]noadvanced subscription (see Advanced Subscriptions)null
ResetSubscriptionbooleannowhether or not to cancel all prior subscriptions of this usertrue
Memostringnoa short description of the invoice to be displayed to the usernull
TimeExpirestringnotime when to cancel invoice automatically if not paid30 days from now
SendEmailbooleannowhether or not send the invoice and the payment link to the user by emailfalse
PostbackUrlstringnooverrides the postback URL specified in settings in Merchant Panel (useful for custom plugins)null

Output

ParameterTypeDescription
Idstringinvoice ID
PaymentLinkstringURL of the payment link

Example Input

{
"MerchantId": "8XOZ64KC9X",
"OrderId": "123465",
"OrderAmount": 19.95,
"OrderCurrency": "USD",
"UserName": "John Smith",
"UserEmail": "name@email.com",
"Subscription": null,
"ResetSubscription": null,
"Memo": "This payment is for order 123465",
"TimeExpire": null,
"SendEmail": false,
"PostbackUrl": null,
}

Example Output

{
"Id": "shE2LfDbUYlsgz",
"PaymentLink": "https://atlos.io/payment/shE2LfDbUYlsgz"
}