question

torey avatar image
torey asked brtinney commented

Production API for Node SDK

If the sandbox environment is:

const sdk = api('@clover-platform/v3#93f22ll93rmuy1')

what does the production environment look like? Is it:

const sdk = api('@clover-platform/v3');
REST API
4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

I am not sure what that means. We have no APIs with v3#93f22ll93rmuy1' in the URL. The relative URI for REST APIs is the same between all environments. The only difference is going to be the API hostname. E.g., sandbox is apisandbox.dev.clover.com, and NA (North America) production is api.clover.com.

0 Likes 0 ·
torey avatar image torey Jeffrey Blattman ♦♦ commented ·

Oh I got that from the api specs https://docs.clover.com/reference/ordergetorder

1666295986180.png

0 Likes 0 ·
1666295986180.png (383.6 KiB)
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ torey commented ·

Okay sorry, I don't know anything about NodeJS. I'm told this may work, so give it a shot:

sdk.server('https://<host>');

See above for the host value.

0 Likes 0 ·
Show more comments

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community