Payment


Representa a un Pago.

Modelo Payment

{
    "id": 1,
    "options": 33,
    "payload": [
        {
            "text": {
                "question": "Portal",
                "content": "paypal"
            }
        },
        {
            "text": {
                "question": "Transaction ID",
                "content": "PAYID-LRSYVFY3NA00891UH778081E"
            }
        },
        {
            "currency": {
                "question": "SubTotal",
                "content": "USD 2"
            }
        },
        {
            "currency": {
                "question": "Tax",
                "content": "USD 30"
            }
        },
        {
            "currency": {
                "question": "Total",
                "content": "USD 32"
            }
        }
    ],
    "total_e2": 102786,
    "order_e2": 6500,
    "tax_e2": 96286,
    "tip_e2": 0,
    "created_at": "2019-02-14 15:34:47",
    "updated_at": "2020-08-06 02:59:28",
    "order_id": 2,
    "provider_id": null,
    "client_id": 2,
    "company_id": 3,
    "branch_id": 2,
    "uid": "paypal:PAYID-LRSYVFY3NA00891UH778081E",
    "payment_tax_e2": 0,
    "is_visible": false,
    "is_branch_gateway": false,
    "data": {
        "order": {
            "id": 2,
            "number": 2
        },
        "client": {
            "id": 2,
            "name": "Pedro Miguel Parra Salazar",
            "display_name": "Pedro Parra",
            "email": "pedrop@manzanares.com.ve"
        },
        "transaction": {
            "currency": "USD",
            "sub_total": 2,
            "tax": 30,
            "total": 32
        }
    },
    "gateway": {
        "debug": null
    }
}

Insertar Payment

Insertar Payment de Order

Método URI Cabeceras
POST /companies/{companyId}/orders/{orderId}/payments Authorization
{
    "type": "required|string|max:32|in:paypal,instapago,zelle,payco,stripe,balance,banco_de_venezuela",
    "order_e2": "required|integer|min:0",
    "tax_e2": "required|integer",
    "tip_e2": "required|integer|min:0",
    "currency_to_use": "string|size:3",
    "payment_identifier": "integer|min:0"
}

Insertar Order Report

Store a newly created resource in storage.

Método URI Cabeceras
POST /companies/{companyId}/orders/{orderId}/payments/report Authorization
{
    "type": "required|integer|min:2|max:20",
    "updated_at": "required_with:form|date",
    "values": [
        {
            "question_index": "required_with:form.values|integer|distinct",
            "answer": "required_with:form.values"
        }
    ],
    "order_e2": "required|integer|min:0",
    "tip_e2": "required|integer|min:0",
    "payment_identifier": "integer|min:0"
}

Listar Payment

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/payments Authorization

Listar Pending

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/payments/pending Authorization

Listar Payment de Order

Método URI Cabeceras
GET /companies/{companyId}/orders/{orderId}/payments Authorization

Listar Payment de Branch

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/payments Authorization

Mostrar Payment

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/payments/{paymentId} Authorization

Actualizar Payment

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId} Authorization
{
    "order_e2": "required|integer|min:0",
    "tax_e2": "required|integer",
    "tip_e2": "required|integer|min:0"
}

Acciones de Payment

Cancel

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId}/cancel Authorization

Accept

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId}/accept Authorization
{
    "comment": "string|max:255"
}

Set Invalid

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId}/set-invalid Authorization

Set Duplicated

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId}/set-duplicated Authorization

Prepare

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId}/prepare Authorization

Verify

Método URI Cabeceras
PATCH /companies/{companyId}/payments/{paymentId}/verify Authorization

Show Accepted

Shows the specified resource from storage.

Método URI Cabeceras
GET /companies/{companyId}/orders/{orderId}/payments-accepted Authorization

Enlaces de Payment