Create invoice

Creates an invoice and emails it to your customer, with a link to pay it online.

Provide the amount, the customer's email, and a description; add the customer's name, address, and tax details to have them printed on the invoice. Use additional_cc_emails to copy other people, and external_id to match the invoice to an order in your own system.

The response includes the invoice's payment_url (the page your customer pays on) and its status, which stays outstanding until the invoice is paid. Use webhooks to be notified when it is.

Body Params
number
required
≥ 0
Defaults to 123

Invoice amount before processing fee and VAT. The customer pays this plus any processing fee, plus 5% VAT on both when vat_enabled is true.

string
Defaults to AED

Currency code for the invoice amount. Accepted currencies are configured by Mamo and can change; see Supported currencies for the current list. American Express cards can pay in AED or USD only.

string
required

The customer's email address where the invoice will be sent.

string
length ≤ 75

A description of the invoice. This will appear on the invoice sent to the customer.

string
enum
required
Defaults to individual

The type of customer receiving the invoice.

Allowed:
string
required

The first name of the customer.

string
required

The last name of the customer.

string

The customer's phone number.

string

The customer's business name. Applicable when customer_type is business.

string

The customer's address. Applicable when customer_type is business.

string

The customer's city. Applicable when customer_type is business.

string

The customer's country. Applicable when customer_type is business.

string

The customer's UAE tax reference number (TRN). Applicable when customer_type is business.

boolean
Defaults to false

Whether to charge 5% VAT on the invoice amount plus any processing fee, and show it on the invoice.

string

An optional heading that will appear as additional information on the invoice.

string

Optional additional details or notes to include on the invoice.

additional_cc_emails
array of strings

A list of additional email addresses to CC when the invoice is sent.

additional_cc_emails
string
length ≤ 20

An external reference ID of your choice to associate with this invoice.

number | null
≥ 0

A processing fee percentage to be added on top of the invoice amount and charged to the customer. If you send both fee fields, this one is used and processing_fee_amount is ignored.

number | null
≥ 0

A fixed processing fee amount to be added on top of the invoice amount and charged to the customer. Ignored if processing_fee_percentage is also sent.

Headers
string

A unique key, such as a UUID, that makes it safe to retry this request. Reuse the same key when you retry. See Idempotency.

Responses

429

Too many requests. You sent more than 100 requests in 30 seconds from one IP address. This response has no JSON body. See Rate limits.

500

Unexpected error

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json