Create Transaction

 

Creates a new transaction to purchase virtual game item.

How to use Mobage Bank API
For more details on how to use the Mobage Bank API, please refer to the following pages.
ngCore SDK | Native SDK | Unity SDK

URI Fragment

/bank/debit/@app

Supported Signing Methods

OAuth2 Authorization

Please refer here for the details of authentication flow and here for how to sign request to generate the Authorization header.

HTTP Method

POST

Request Header

  • The Authorization header is necessary for this call to succeed. Use "Authorization: bearer {oauth2_token}" as shown in below samples for this API.
  • Content-Type: application/json; charset=utf-8

URL Query Parameters

None.

Request Body

A JSON string with following keys and values. Please refer to the sample below for the actual JSON string.

Response Status Code

HTTP Status Code

HTTP Status Message

Meaning

201

Created

Data successfully created.

400

Bad Request

Corrupt request data on the client side

401

Unauthorized

Authorization error

403

Forbidden

The resource exists, but access is not possible due to a reason other than an authorization error.

404

Not Found

The resource does not exist.

500

Internal Server Error

An error on the API server side

503

Service Unavailable

The API cannot be used temporarily

 

Response Body

  • The transaction ID in JSON format for the new transaction if successful.
  • Content-Type: application/json; charset=utf-8

Parameter Name

Type

Description

id

String

The transaction ID of the new transaction.

 

Example Request & Response

Base String
Http Request
HTTP Response

PREVIOUS

Bank API

NEXT

Update Transaction