Check Subscription

Get Subscription

GET https://api.stage.localpayment.com/api/subscriptions/externalID

Get subscription information

Path Parameters

NameTypeDescription

id*

string

Mandatory. Subscription ID as returned by POST method

Headers

NameTypeDescription

Authorization*

string

Mandatory. Bearer JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication.

{
    "externalId": "1623540689",
    "subscriptionId": "ad5bb089-1095-446f-88ca-3bf2fae3610d",
    "status": {
        "code": "202",
        "description": "COMPLETED",
        "detail": "The subscription was completed"
    },
    "totalPayments": 2,
    "pendingPayments": 0,
    "creationDate": "2021-06-12T23:31:29.869+00:00",
    "nextPaymentDate": "2021-03-14T03:00:00.000+00:00",
    "request": {
        "payer": {
            "name": "Fernando",
            "type": "INDIVIDUAL",
            "email": "n.cabral@gmail.com",
            "phone": {
                "number": "98789632",
                "areaCode": "11",
                "countryCode": "1"
            },
            "address": {
                "city": "Temperley",
                "state": "state",
                "number": "1234",
                "street": "Siempre viva",
                "comment": "timbre roto, llamar",
                "country": "Argentina",
                "zipCode": "1686"
            },
            "document": {
                "id": "37993830",
                "type": "DNI"
            },
            "lastname": "Gomez",
            "birthdate": "01/01/1990",
            "nationality": "Argentino",
            "userReference": "identificador del pagador"
        },
        "amount": 150.0,
        "device": {
            "id": "Android 9",
            "ip": "127.111.142",
            "browser": "Google Chrome"
        },
        "comment": "Primer pago",
        "country": "ARG",
        "currency": "ARS",
        "metaData": {
            "algoDelCliente": "informacion adicional del cliente"
        },
        "clientCode": "0002",
        "externalId": "1623540689",
        "beneficiary": {
            "name": "Netflix Argentina1",
            "type": "COMPANY",
            "email": "netflix.argentina@gmail.com",
            "phone": {
                "number": "98789632",
                "areaCode": "11",
                "countryCode": "1"
            },
            "address": {
                "city": "Hurlingham",
                "state": "state",
                "number": "938",
                "street": "Charruas",
                "comment": "portero 801",
                "country": "Argentina",
                "zipCode": "1688"
            },
            "document": {
                "id": "30558251405",
                "type": "CUIT"
            },
            "lastname": "Solo si es type INDIVIDUAL",
            "merchant": "Netflix001",
            "birthdate": "1994-02-20",
            "nationality": "Argentino"
        },
        "conceptCode": "String",
        "accountNumber": "032.032.00000001",
        "autoRecurring": {
            "nextPayment": "2021-01-13",
            "repetitions": 2
        },
        "paymentMethod": {
            "code": "1000",
            "flow": "DIRECT",
            "type": "CreditCard"
        },
        "commercialData": {
            "items": [
                {
                    "id": "PR0001",
                    "title": "Point Mini",
                    "quantity": "1",
                    "unitPrice": 58.8,
                    "categoryId": "electronics",
                    "pictureUrl": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium@2x.png",
                    "description": "Producto Point para cobros con tarjetas mediante bluetooth"
                }
            ],
            "invoice": "Refencia a una factura",
            "shipments": [
                {
                    "city": "Temperley",
                    "state": "state",
                    "number": "1234",
                    "street": "Siempre viva",
                    "comment": "timbre roto, llamar",
                    "country": "Argentina",
                    "zipCode": "1686"
                }
            ]
        },
        "intermediaries": [
            {
                "name": "Fernando",
                "type": "INDIVIDUAL",
                "email": "n.cabral@gmail.com",
                "phone": {
                    "number": "98789632",
                    "areaCode": "11",
                    "countryCode": "1"
                },
                "address": {
                    "city": "Temperley",
                    "state": "state",
                    "number": "1234",
                    "street": "Siempre viva",
                    "comment": "timbre roto, llamar",
                    "country": "Argentina",
                    "zipCode": "1686"
                },
                "document": {
                    "id": "37993830",
                    "type": "DNI"
                },
                "lastname": "Gomez",
                "birthdate": "01/01/1990",
                "nationality": "Argentino"
            }
        ],
        "exchangeRateToken": "String"
    },
    "payments": [
        {
            "internalId": "9341125e-6f24-4141-adb5-b2e555d58558",
            "status": {
                "code": "103",
                "description": "APPROVED",
                "detail": "The payin was confirmed but not credited yet"
            }
        },
        {
            "internalId": "887517fe-d052-4634-8d85-f1e632d3357e",
            "status": {
                "code": "103",
                "description": "APPROVED",
                "detail": "The payin was confirmed but not credited yet"
            }
        }
    ],
    "retries": 0
}
curl --location --request GET 'https://api.stage.localpayment.com/api/subscriptions/1662558201' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjYyNjUyNTYyLCJqdGkiOiJmZGM3NzMzNWYwNWY0YTg1OTg1NzM0ZTg0NmU3OTg4OSIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ._wpnC6r02XdGRhcEYx-sWEB3dj8OzuuurglgnI2jSJ4'

Last updated