Create Invoice

Create and invoice for specified products, donation or managing customer balance for your merchant

Payment Page ID

The Payment page is the first thing you need to create an Invoice. Payment pages are page types that you can create and edit from your Kriptopay Panel. Thanks to these pages, you can offer the user which coins to pay with, and process the payment currency, spoken language and the information you want to receive from the person making the payment.

Each Payment Page has a unique code. Your payment pages will come with a default page after your membership is activated. On this page, all coins are selected and default settings are allowed. The importance of payment pages allows you to perform integration processes once and make changes over time. You decide how this payment will proceed by entering this code when creating the invoice.

Once you have the code for your payment page, creating an Invoice will be very simple. All you need to do is enter the requested information in the API endpoint below and process the result.

Create an invoice

POST /invoice

This endpoint creates an invoice for your customer.

This endpoint allows you to create invoices.

post
/invoice
Authorizations
AuthorizationstringRequired
Body
merchant_idstringRequired
transaction_idstringRequired
identifierstringRequired
payment_pagestringRequired
Responses
200

successful operation

application/json
post
/invoice
POST /api/merchant/invoice HTTP/1.1
Host: kriptopay.com
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 72

"merchant_id=''&transaction_id=''&identifier=''&payment_page=''"
{
  "order_id": "123e4567-e89b-12d3-a456-426614174000",
  "order_number": 1234,
  "status": "draft",
  "url": "https://kriptopay.com/invoice/3fa85f642c963f66afa6",
  "transaction_id": "text",
  "identifier": "text"
}

Request Body

Name
Type
Description

merchant_id

string

Your merchant id

transaction_id

string

Your custom transaction id

identifier

string

Identify your customer with and id.

payment_page

string

Your payment page id (Described here)

txn_id

string

The transaction number that the customer sees on the payment screen.

Response Body

Name
Type
Description

order_id

string

The Unique order id created by our system.

order_number

string

Human readable order number that you can see and manage in Kriptopay admin panel.

status

enum

Status of an order to describe its status

url

string

Offer this url to your customer to pay

transaction_id

string

Transaction id generated by you when creating invoice

identifier

string

Identifiy your customer/product/order to manage in your records.

txn_id

string

The transaction number that the customer sees on the payment screen.

Response Examples

{
  "order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "order_number": 1234,
  "status": "draft",
  "url": "https://kriptopay.com/invoice/3fa85f642c963f66afa6",
  "transaction_id": "string",
  "identifier": "string",
  "txn_id": "2RLODRhg5vZC",
  "requested_amount": 0.0000034
}

Last updated