# Point manupulation

## Earn point via Rest API

> \*\*Earn point via Rest API\*\*\
> \
> This api allows you to increase point for a specific shopify customer via Rest API

```json
{"openapi":"3.0.0","info":{"title":"Joy Loyalty Program - API REST","version":"1.0.0"},"tags":[{"name":"Points"}],"servers":[{"url":"https://dev-api.joy.so"}],"paths":{"/rest_api/v1/shopify/earn-point":{"post":{"tags":["Points"],"summary":"Earn point via Rest API","description":"**Earn point via Rest API**\n\nThis api allows you to increase point for a specific shopify customer via Rest API","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"X-Joy-Loyalty-App-Key","in":"header","schema":{"type":"string"}},{"name":"X-Joy-Loyalty-Secret-Key","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"Connection":{"schema":{"type":"string"}},"Content-Length":{"schema":{"type":"integer"}},"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Content-Type":{"schema":{"type":"string"}},"Function-Execution-Id":{"schema":{"type":"string"}},"Server":{"schema":{"type":"string"}},"X-Cloud-Trace-Context":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"type":"string"}},"Date":{"schema":{"type":"string"}},"X-Served-By":{"schema":{"type":"string"}},"X-Cache":{"schema":{"type":"string"}},"X-Cache-Hits":{"schema":{"type":"integer"}},"X-Timer":{"schema":{"type":"number"}},"Vary":{"schema":{"type":"string"}},"alt-svc":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## Spend point via Rest API

> \*\*Spend point via Rest API\*\*\
> \
> This api allows you to decrease point for a specific shopify customer via Rest API

```json
{"openapi":"3.0.0","info":{"title":"Joy Loyalty Program - API REST","version":"1.0.0"},"tags":[{"name":"Points"}],"servers":[{"url":"https://dev-api.joy.so"}],"paths":{"/rest_api/v1/shopify/spend-point":{"post":{"tags":["Points"],"summary":"Spend point via Rest API","description":"**Spend point via Rest API**\n\nThis api allows you to decrease point for a specific shopify customer via Rest API","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"X-Joy-Loyalty-App-Key","in":"header","schema":{"type":"string"}},{"name":"X-Joy-Loyalty-Secret-Key","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"Connection":{"schema":{"type":"string"}},"Content-Length":{"schema":{"type":"integer"}},"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Content-Type":{"schema":{"type":"string"}},"Function-Execution-Id":{"schema":{"type":"string"}},"Server":{"schema":{"type":"string"}},"X-Cloud-Trace-Context":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"type":"string"}},"Date":{"schema":{"type":"string"}},"X-Served-By":{"schema":{"type":"string"}},"X-Cache":{"schema":{"type":"string"}},"X-Cache-Hits":{"schema":{"type":"integer"}},"X-Timer":{"schema":{"type":"number"}},"Vary":{"schema":{"type":"string"}},"alt-svc":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

{% openapi src="/files/8rCfZXlEaDAzkbaa16pD" path="/rest\_api/v1/shopify/reset-point" method="post" %}
[joy-api.yaml](https://99037881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLCQVRKtqOD25VSLWDI7U%2Fuploads%2Fgit-blob-a80063dea34c12116bc38124170a7cff80ebec88%2Fjoy-api.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/8rCfZXlEaDAzkbaa16pD" path="/rest\_api/v1/shopify/adjust-point" method="post" %}
[joy-api.yaml](https://99037881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLCQVRKtqOD25VSLWDI7U%2Fuploads%2Fgit-blob-a80063dea34c12116bc38124170a7cff80ebec88%2Fjoy-api.yaml?alt=media)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devdocs.joy.so/joy-rest-api-v1-deprecated/api-references/point-manupulation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
