# Assistance with cURL Payment Terminal Apollo

**URL:** <https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623>\
**Category:** Help Hub\
**Tags:** tests, json\
**Created:** [January 16, 2024, 1:56pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623 "2024-01-16T13:56:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![science-cosmologist2](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@science-cosmologist2](https://community.postman.com/u/science-cosmologist2)\
**Post date:** [January 16, 2024, 1:56pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/1 "2024-01-16T13:56:07Z")

</div>

Hello everyone,

I need to implement this “command” to populate a payment terminal with text and images. Unfortunately, I have zero experience in this area, and I was only told that I can do it with Postman, but I have no further support. Can anyone help me here?

Best regards,  
Dominik

```auto
curl -X 'POST' https://cps.mypayter.com/terminals/${SERIAL_NUMBER}/ui \
-H 'Authorization: CPS apikey="'${CPS_API_KEY}'"' \
-H 'Content-Type: application/json' \
-d '{
"id": "my-info-screen",
"type": "info",
"properties": {
"title": "test"
}
}'

```

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 16, 2024, 2:18pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/2 "2024-01-16T14:18:31Z")

</div>

Hey @science-cosmologist2 👋

Welcome to the Postman community :postman:

You can paste that full command directly into the URL bar, that will create a new request for you with the elements mentioned in the command, populated within it.

From here you can add the specific details needed for your actual request.

---

<div class="post-metadata">

**Author:** ![science-cosmologist2](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@science-cosmologist2](https://community.postman.com/u/science-cosmologist2)\
**Post date:** [January 16, 2024, 2:33pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/3 "2024-01-16T14:33:43Z")

</div>

Thanks for the quick response.  
Which URL bar do you mean?  
Dominik

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 16, 2024, 2:56pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/4 "2024-01-16T14:56:16Z")

</div>

If you open a New Request in a tab, you can paste that into the request URL (highlighted in green)

 ![Screenshot 2024-01-16 at 14.52.36](https://us1.discourse-cdn.com/getpostman/original/3X/f/9/f904913c655689b276f19c9741e2e3347d40d8fd.png)

---

<div class="post-metadata">

**Author:** ![science-cosmologist2](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@science-cosmologist2](https://community.postman.com/u/science-cosmologist2)\
**Post date:** [January 16, 2024, 3:40pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/5 "2024-01-16T15:40:19Z")

</div>

The thing is so very simple. Many thanks for the quick help.

---

<div class="post-metadata">

**Author:** ![science-cosmologist2](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@science-cosmologist2](https://community.postman.com/u/science-cosmologist2)\
**Post date:** [January 17, 2024, 4:08pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/6 "2024-01-17T16:08:52Z")

</div>

Everything has worked so far. But now I still have a problem. I still need to integrate the token here:

To convert the token into an API key, send a POST with the token to our cps service, e.g. ([Generate API Key](https://cps.mypayter.com/apikey/$%7BTOKEN%7D))  
This returns the API key, which you can insert into the header.

Now how do I put it all together so that it works properly?

```auto
curl -X 'POST' https://cps.mypayter.com/terminals/${SERIAL_NUMBER}/ui \

-H 'Authorization: CPS apikey="'${CPS_API_KEY}'"' \
-H 'Content-Type: application/json' \
-d '{
"id": "my-info-screen",
"type": "info",
"properties": {
"title": "test",
}
}

```

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 17, 2024, 5:05pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/7 "2024-01-17T17:05:21Z")

</div>

I have no idea what that API is but going off the link you shared, I’m guessing the CPS\_API\_KEY value gets returned in this call 🤷‍♂️

```auto
curl -X POST 'https://cps.mypayter.com/apikey/<token>'

```

You might need to get the `token` value from a portal that you’re logged into or something like that. I honestly don’t know, I’ve never seen or used this before.

This request on it’s own returns this response so it’s hitting a server:

```auto
{
    "timestamp": "2024-01-17T16:58:48.250+0000",
    "status": 404,
    "error": "Not Found",
    "message": "NO_EXISTING_TOKEN"
}

```

The best bet is to speak with the person/people who have given you this task to deal with - It shouldn’t be up to you to figure out how it all works.

At the very least there should be clear documentation for these requests.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [January 20, 2024, 5:05pm UTC](https://community.postman.com/t/assistance-with-curl-payment-terminal-apollo/56623/8 "2024-01-20T17:05:37Z")

</div>

Closed on January 20, 2024, 5:05pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
