Create One Time Application Charge

Create a charge for an application within Shoplazza.

The Create Application Charge API is used to create a charge for an application within Shoplazza. This API is essential for developers implementing billing functionalities for their apps, ensuring that the charges match the pricing defined in the APP package settings.

This API is especially useful for:

  1. Enabling app developers to implement and test billing workflows.
  2. Create a charge for an application with one time charge or free to install model.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
application_charge.namestringYesThe application charge namePremium Plan
application_charge.pricestringYesThe amount of the charge, must match with the APP package setting amount19.99
application_charge.return_urlstringYesRedirect URL after paymenthttps://example.com/return
application_charge.testbooleanNoWhether to test the charge, default to falsetrue

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status indicator
messagestring"Inventory levels retrieved"Result description
data.application_chargeobjects{...}application charges=

Application Charge Object Structure

ParameterTypeExampleDescription
idstringchg_123456Unique identifier for the charge
namestringPremium PlanName of the charge
pricestring19.99Price of the charge
confirm_urlstringhttps://example.com/confirmURL to confirm the charge
return_urlstringhttps://example.com/returnURL to return after confirmation
statusstringactiveStatus of the charge
testbooleanfalseWhether this is a test charge
created_atstring2023-06-01T00:00:00ZCreation time (ISO 8601 format)
updated_atstring2023-06-01T00:00:00ZLast modified time (ISO 8601 format)

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!