> For the complete documentation index, see [llms.txt](https://aplazo.gitbook.io/aplazo-integrations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aplazo.gitbook.io/aplazo-integrations/api-reference/in-store-api/get-payment-status.md).

# Get payment status

## Environments

{% tabs %}
{% tab title="Development" %}
<https://api.aplazo.net>
{% endtab %}

{% tab title="Production" %}
<https://api.aplazo.net>
{% endtab %}
{% endtabs %}

## Get Payment Status

> Retrieves the current status of a payment associated with the given cartId. If it has not been paid, customer object fields will be null or empty.

```json
{"openapi":"3.0.3","info":{"title":"Aplazo In-Store Payments API","version":"1.0.0"},"servers":[{"url":"https://api.aplazo.net"}],"security":[{"api_token":[]},{"merchant_id":[]}],"components":{"securitySchemes":{"api_token":{"type":"apiKey","in":"header","name":"api_token"},"merchant_id":{"type":"apiKey","in":"header","name":"merchant_id"}}},"paths":{"/api/pos/loan/{cartId}":{"get":{"summary":"Get Payment Status","description":"Retrieves the current status of a payment associated with the given cartId. If it has not been paid, customer object fields will be null or empty.","operationId":"getPaymentStatus","tags":["Payment"],"parameters":[{"in":"path","name":"cartId","required":true,"description":"Identifier in the merchant POS for the order/transaction.","schema":{"type":"string"}}],"responses":{"200":{"description":"Payment status returned successfully.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["loanId","status","installments","totalAmount","orderDiscount","discountType","authorizeDate","products","customer"],"properties":{"loanId":{"type":"integer","description":"Numeric Aplazo ID for the transaction."},"status":{"type":"string","description":"Status of the loan in Aplazo system.","enum":["OUTSTANDING","HISTORICAL","REQUEST","CANCELLED"]},"zipCode":{"type":"string","description":"Zip code (postal code) for the customer (can be empty)."},"installments":{"type":"integer","description":"Number of payments the customer will make.","minimum":1},"totalAmount":{"type":"string","description":"Total amount of the order, including discounts.","pattern":"^\\d+(\\.\\d{1,2})?$"},"orderDiscount":{"type":"string","description":"Discount at order level (informational only).","pattern":"^\\d+(\\.\\d{1,2})?$"},"discountType":{"type":"string","description":"Type of discount applied: \"a\" (amount), \"p\" (percentage), or empty if none."},"authorizeDate":{"type":"string","format":"date-time","description":"Date the order was created (ISO8601 format)."},"products":{"type":"array","description":"Product information.","items":{"type":"object","required":["id","externalId","quantity","unitPrice","title"],"properties":{"id":{"type":"string","description":"Aplazo ID for the item."},"externalId":{"type":"string","description":"Id of the item in the merchant POS system."},"quantity":{"type":"string","description":"Quantity of the product purchased.","pattern":"^\\d+$"},"unitPrice":{"type":"string","description":"Price of the item, including taxes, excluding discounts.","pattern":"^\\d+(\\.\\d{1,2})?$"},"discount":{"type":"string","nullable":true,"description":"Discount applied to the item.","pattern":"^\\d+(\\.\\d{1,2})?$"},"discountType":{"type":"string","nullable":true,"description":"Type of discount applied (\"a\" for amount, \"p\" for percentage, or null).","enum":["a","p",null]},"discountPrice":{"type":"string","nullable":true,"description":"Price of the item after discounts are applied.","pattern":"^\\d+(\\.\\d{1,2})?$"},"title":{"type":"string","description":"Name of the item."},"description":{"type":"string","description":"Item description in the merchant system."}}}},"customer":{"type":"object","description":"Customer information.","required":["username","firstName","lastName","motherLastName","email","phone"],"properties":{"username":{"type":"string","nullable":true,"description":"Normally the customer's email."},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"motherLastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"pattern":"^[0-9]{10}$"}}}}}}}}}}}}}}
```
