{ "components": { "schemas": { "account": { "description": "Account is defined by the app specifically to manage users transactions.", "properties": { "accountid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this account." }, "ownerid": { "type": "string", "description": "The username registered in the application" }, "total_amount": { "type": "number", "format": "double", "description": "The amount specific to the debit and sold account. This field allows the process transactions." }, "currency": { "type": "string", "description": "The currency specific to location." }, "sold": { "type": "number", "format": "double", "description": "The amount specific to the balance account. This field allows the process transactions." }, "debit": { "type": "number", "format": "double", "description": "The amount specific to the money merchant have to collect and pay. This field allows the process transactions." } }, "required": [ "accountid", "ownerid", "total_amount", "currency", "sold", "debit" ], "type": "object" }, "account_form": { "properties": { "accountid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this account." }, "ownerid": { "type": "string", "description": "The username registered in the application." }, "total_amount": { "type": "number", "format": "double", "description": "The amount specific to the debit and sold account. This field allows the process transactions." }, "sold": { "type": "number", "format": "double", "description": "The amount specific to the balance account. This field allows the process transactions." }, "debit": { "type": "number", "format": "double", "description": "The amount specific to the money merchant have to collect and pay. This field allows the process transactions." }, "currency": { "type": "string", "description": "The currency specific to location." } }, "required": [ "accountid", "ownerid", "sold", "currency" ], "type": "object" }, "deposit": { "description": "Deposit describes a way a payment is handled. It depends of Payment Resource", "properties": { "depid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this account." }, "paymentid": { "type": "integer", "format": "int64", "description": "The added paymentid used to proceed the deposit transaction." } }, "required": [ "depid", "paymentid" ], "type": "object" }, "payment": { "description": "Payment is defined by the app specifically to emit users transactions.", "properties": { "payid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this payment." }, "actorid": { "type": "string", "description": "The username registered in the application" }, "amount": { "type": "number", "format": "double", "description": "The amount to send. This field allowed the processing transactions." }, "ref_accountid": { "type": "integer", "format": "int64", "description": "The accountid to use to send money to the specific account." }, "payment_method": { "type": "string", "description": "The type of payment to use [Mobile Money or Credit Card]." }, "operatorid": { "type": "string", "description": "The operator specified the type of payment if Mobile Money." }, "phone": { "type": "integer", "format": "int64", "description": "The phone identifying specific account of consumer." }, "pin": { "type": "integer", "description": "The code used to validate the transaction." }, "currency": { "type": "string", "description": "The phone identifying specific account of consumer." }, "payment_context": { "type": "string", "description": "This field specify the type of transaction [Buying, Deposit, Withdraw]." } }, "required": [ "payid", "actorid", "amount", "ref_accountid", "payment_method", "operatorid", "phone", "pin", "currency", "payment_context" ], "type": "object" }, "payment_form": { "properties": { "payid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this payment." }, "actorid": { "type": "string", "description": "The username registered in the application" }, "amount": { "type": "number", "format": "double", "description": "The amount to send. This field allowed the processing transactions." }, "ref_accountid": { "type": "integer", "format": "int64", "description": "The accountid to use to send money to the specific account." }, "payment_method": { "type": "string", "description": "The type of payment to use [Mobile Money or Credit Card]." }, "operatorid": { "type": "string", "description": "The operator specified the type of payment if Mobile Money." }, "phone": { "type": "integer", "format": "int64", "description": "The phone identifying specific account of consumer." }, "pin": { "type": "integer", "description": "The code used to validate the transaction." }, "currency": { "type": "string", "description": "The phone identifying specific account of consumer." }, "payment_context": { "type": "string", "description": "This field specify the type of transaction [Buying, Deposit, Withdraw]." } }, "required": [ "payid", "actorid", "amount", "ref_accountid", "payment_method", "operatorid", "phone", "pin", "currency", "payment_context" ], "type": "object" }, "transfer": { "description": "Transfer is defined by the app specifically to manage users transactions (sending and receiving).", "properties": { "transferid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this account." }, "senderid": { "type": "string", "description": "The username registered in the application" }, "amount": { "type": "number", "format": "double", "description": "The amount to be send. This field allows the process transactions." }, "ref_accountid_receiver": { "type": "integer", "format": "int64", "description": "The accountid to use to send money and referencing the receiver." }, "ref_accountid_sender": { "type": "integer", "format": "int64", "description": "The accountid to use to send money and referencing the sender." }, "currency": { "type": "string", "description": "The currency specific to a country." } }, "required": [ "transferid", "senderid", "amount", "ref_accountid_receiver", "ref_accountid_sender", "currency" ], "type": "object" }, "transfer_form": { "properties": { "transferid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this account." }, "senderid": { "type": "string", "description": "The username registered in the application." }, "amount": { "type": "number", "format": "double", "description": "The amount to be send. This field allows the process transactions." }, "ref_accountid_receiver": { "type": "integer", "format": "int64", "description": "The accountid to use to send money and referencing the receiver." }, "ref_accountid_sender": { "type": "integer", "format": "int64", "description": "The accountid to use to send money and referencing the sender." }, "currency": { "type": "string", "description": "The currency specific to a country." } }, "required": [ "transferid", "senderid", "amount", "ref_accountid_receiver", "ref_accountid_sender", "currency" ], "type": "object" }, "validation": { "description": "Used only to validate json files - used as a resource where http status code defines success", "properties": { "valid": { "type": "boolean", "description": "If true, the json schema is valid. If false, there is at least one validation error." }, "errors": { "items": { "type": "string" }, "type": "array", "description": "Contains any validation errors that result from parsing the json document. If empty, the document is valid.", "default": "[]" } }, "required": [ "valid", "errors" ], "type": "object" }, "withdraw": { "description": "Withdraw describes a way a payment is handled. It depends of Payment Resource", "properties": { "wdwid": { "type": "integer", "format": "int64", "description": "Internal unique identifier for this account." }, "paymentid": { "type": "integer", "format": "int64", "description": "The added paymentid used to proceed the deposit transaction." } }, "required": [ "wdwid", "paymentid" ], "type": "object" }, "app_sort_by": { "description": "Possible values: created,edited.", "enum": [ "created", "edited" ], "type": "string" }, "original_type": { "description": "Possible values: api_json.", "enum": [ "api_json" ], "type": "string" }, "publication": { "description": "A publication represents something that a user can subscribe to. An example would be subscribing to an email alert whenever a new version of an application is created. Possible values: membership_requests.create,memberships.create,applications.create,versions.create.", "enum": [ "membership_requests.create", "memberships.create", "applications.create", "versions.create" ], "type": "string" }, "sort_order": { "description": "Possible values: asc,desc.", "enum": [ "asc", "desc" ], "type": "string" }, "visibility": { "description": "Controls who is able to view this version. Possible values: public.", "enum": [ "public" ], "type": "string" } } }, "info": { "contact": { "name": "Steve Mbakop", "email": "mard@mardets.com" }, "description": "This is a payment pending using Mobile Money API and Credit Card. This API allows merchant to get payment information of the consumer which have its own account and money manage by the solution. The merchant can receive its money if only the consumer agreed [1st case].", "license": { "name": "MIT", "url": "http://opensource.org/licenses/MIT" }, "termsOfService": "", "title": "mard2p API", "version": "0.0.2-dev" }, "openapi": "3.0.2", "paths": { "/accounts/create": { "post": { "description": "Used to create an account.", "operationId": "post--accounts-create", "parameters": [ { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "accountid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ownerid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "total_amount" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "sold" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "debit" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "currency" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.account", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/account" } } }, "headers": {} }, "409": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "account" ] } }, "/accounts/update/:accountid": { "put": { "description": "Used to update an account.", "operationId": "put--accounts-update-accountid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "accountid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ownerid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "total_amount" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "currency" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "sold" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "debit" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.account", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/account" } } }, "headers": {} }, "409": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "account" ] } }, "/accounts/delete/:accountid": { "delete": { "description": "Delete some account.", "operationId": "delete--accounts-delete-accountid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "accountid" } ], "responses": { "204": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "401": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "account" ] } }, "/accounts/:accountid": { "get": { "description": "Find account by its id", "operationId": "get--accounts-accountid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "ownerid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "total_amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "sold" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "debit" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.account", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/account" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "account" ] } }, "/accounts/list": { "get": { "description": "Find all the accounts.", "operationId": "get--accounts-list", "parameters": [ { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "ownerid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "total_amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "sold" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "debit" } ], "responses": { "200": { "description": "[payp.mard2p.api.v0.models.account]", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/account" }, "type": "array" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "account" ] } }, "/deposits/delete/:depid": { "delete": { "description": "Delete some deposit.", "operationId": "delete--deposits-delete-depid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "depid" } ], "responses": { "204": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "401": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "deposit" ] } }, "/deposits/:depid": { "get": { "description": "Find deposit by its id.", "operationId": "get--deposits-depid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "depid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.payment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/payment" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "deposit" ] } }, "/deposits/list": { "get": { "description": "List all the deposits", "operationId": "get--deposits-list", "parameters": [ { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "[payp.mard2p.api.v0.models.payment]", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/payment" }, "type": "array" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "deposit" ] } }, "/payments/create": { "post": { "description": "Used to create a payment.", "operationId": "post--payments-create", "parameters": [ { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "payid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "payment_method" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "actorid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ref_accountid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "operatorid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "amount" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "currency" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "phone" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "pin" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "payment_context" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.payment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/payment" } } }, "headers": {} }, "409": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "payment" ] } }, "/payments/update/:payid": { "put": { "description": "Used to update a payment.", "operationId": "put--payments-update-payid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "payment_method" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "actorid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ref_accountid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "operatorid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "amount" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "phone" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "pin" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "currency" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "payment_context" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.payment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/payment" } } }, "headers": {} }, "409": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "payment" ] } }, "/payments/delete/:payid": { "delete": { "description": "Delete some payment.", "operationId": "delete--payments-delete-payid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" } ], "responses": { "204": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "401": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "payment" ] } }, "/payments/:payid": { "get": { "description": "Find payment by its id.", "operationId": "get--payments-payid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.payment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/payment" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "payment" ] } }, "/payments/:ref_accountid": { "get": { "description": "Find payment by id accountid", "operationId": "get--payments-ref_accountid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.payment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/payment" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "payment" ] } }, "/payments/list": { "get": { "description": "List all the payments", "operationId": "get--payments-list", "parameters": [ { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "[payp.mard2p.api.v0.models.payment]", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/payment" }, "type": "array" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "payment" ] } }, "/transfers/create": { "post": { "description": "Used to create a transfer resource.", "operationId": "post--transfers-create", "parameters": [ { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "transferid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "senderid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "amount" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "currency" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ref_accountid_receiver" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ref_accountid_sender" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.transfer", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/transfer" } } }, "headers": {} }, "409": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "transfer" ] } }, "/transfers/update/:transferid": { "put": { "description": "Used to update a transfer resource.", "operationId": "put--transfers-update-transferid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "transferid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "senderid" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "number", "format": "double" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "amount" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "currency" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ref_accountid_receiver" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "integer", "format": "int64" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "ref_accountid_sender" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.transfer", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/transfer" } } }, "headers": {} }, "409": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "transfer" ] } }, "/transfers/delete/:transferid": { "delete": { "description": "Delete some transfer.", "operationId": "delete--transfers-delete-transferid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "transferid" } ], "responses": { "204": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "401": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "transfer" ] } }, "/transfers/:transferid": { "get": { "description": "Find transfer by its id", "operationId": "get--transfers-transferid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "transferid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "senderid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid_receiver" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid_sender" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.account", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/account" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "transfer" ] } }, "/transfers/list": { "get": { "description": "Find all the transfers.", "operationId": "get--transfers-list", "parameters": [ { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "transferid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "senderid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid_receiver" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid_sender" } ], "responses": { "200": { "description": "[payp.mard2p.api.v0.models.account]", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/account" }, "type": "array" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "transfer" ] } }, "/validations": { "post": { "operationId": "post--validations", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "payp.mard2p.api.v0.models.validation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/validation" } } }, "headers": {} } }, "tags": [ "validation" ] } }, "/withdraws/delete/:wdwid": { "delete": { "description": "Delete some withdraw.", "operationId": "delete--withdraws-delete-wdwid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "wdwid" } ], "responses": { "204": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "401": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "withdraw" ] } }, "/withdraws/:wdwid": { "get": { "description": "Find withdraw by its id.", "operationId": "get--withdraws-wdwid", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "wdwid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "depid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "payp.mard2p.api.v0.models.payment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/payment" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "withdraw" ] } }, "/withdraws/list": { "get": { "description": "List all the withdraws", "operationId": "get--withdraws-list", "parameters": [ { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "payid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_method" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "actorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "ref_accountid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "operatorid" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "number", "format": "double" }, "name": "amount" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "phone" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "integer", "format": "int64" }, "name": "pin" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "currency" }, { "deprecated": false, "in": "query", "required": true, "schema": { "type": "string" }, "name": "payment_context" } ], "responses": { "200": { "description": "[payp.mard2p.api.v0.models.payment]", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/payment" }, "type": "array" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "withdraw" ] } } }, "servers": [ { "url": "https://api.apibuilder.io" } ] }