Fizen Pay API Documents
  • Introduction
  • Process Flow
  • Getting Started
    • Register
    • Environment
    • Get your API keys
    • Make your first API request
  • Reference
    • API Reference
      • Charges
        • Create a charge
        • List charges
        • Charge details
        • Cancel a charge
        • Resolve a charge
        • Refund a charge
      • Utilities
        • Fiat to cryptocurrency
    • Webhooks
  • Environment
    • Sandbox
      • Web app
      • Register page
      • Settings page
      • API Endpoint
    • Production
      • Web app
      • Register page
      • Settings page
      • API Endpoint
Powered by GitBook
On this page
  1. Getting Started

Make your first API request

To make your first request, send an authenticated request to the /charges endpoint. This will create a charge.

PreviousGet your API keysNextAPI Reference

Last updated 2 years ago

Create a charge.

POST /charges

To create a charge, following information should be included in payload request

More details at

Request Body

Name
Type
Description

name*

string

Name of the charge

description

string

Description of the charge

logoUrl

string

Charge image URL

metadata

string

Metadata associated with the charge

localPrice*

object

amount: Charge amount, currency: Charge local currency

redirectUrl*

string

Redirect URL when charge payment is completed

cancelUrl*

string

Cancel URL

{
    "statusCode": 201,
    "time": "2022-03-09T09:27:14.456Z",
    "data": {
    // Charge data come here
    },
    "total": 0
}

For testing purpose, after create a charge, you can still cancel the charge by using API. Prefer full API documents in the next sections.

Create a charge
Cancel a charge