Skip to main content

Create h2h invoice

POST 

/merchant-api/v1/invoices/create-h2h

This method is creating h2h invoice

Request

Body

required

The description for the Post Body.

    amount numberrequired

    Amount of money for invoice

    gate_id string

    Id of the gate used for transaction

    comment string

    Comment for invoice

    currency_id stringrequired

    Possible values: [USD, EGP, RUB, KZT, EUR, UAH, MXN, INR, TRY, UZS, AZN, MDL, VND, KRW, AED, IDR, PKR, PEN, CLP, MAD, BYN, COP, NGN, ZAR, SAR, XOF, CAD, AUD, GBP, PLN, NZD, NOK, DKK, SEK, HUF, PHP, TJS, RSD]

    Currency of the invoice

    external_id stringrequired

    Client information must be unique

    succeed_url string

    The URL to which the payer will be redirected after successful payment of the invoice

    failed_url string

    The URL to which the payer will be redirected after an unsuccessful invoice payment

    callback_url string

    URL address to which the transaction status notification will be sent

    card_cvv stringrequired

    Cvv of the credit card

    card_month stringrequired

    Expiration month of the credit card

    card_year stringrequired

    Expiration year of the credit card

    card_number stringrequired

    Card number of the credit card

    cardholder stringrequired

    Cardholder of the credit card

    client_ip string

    Ip address of the buyer

    additional_data object

    Additional params needed for some gates

    form_language string

    Possible values: [ru, en, ua, es, it, de, pt, bg, pl, fr]

    Language of the form

    project_url string

    Url of your project needed for some gates

    email string

    Payers's email, needed for some gates

    init_payment_token boolean

    Possibility to create a payment token

    date_of_birth string

    Your customer’s date of birth (must be 18+ y.o.).In ISO 8601 format

Responses

The h2h invoice has been successfully created.

Schema

    transaction_uid stringrequired

    Unique id of the invoice

    amount stringrequired

    Amount of money to pay for the invoice

    status stringrequired

    Possible values: [Created, Pending, Failed, Succeed, Refund]

    Current status of the invoice

    currency_id stringrequired

    Currency of the invoice

    invoice_3ds_url stringrequired

    3ds url for invoice payment

    external_id numberrequired

    the information about the client

    comment stringrequired

    the description of the invoice

    created_at stringrequired

    Time stamp of the invoice creation

Loading...