All URIs are relative to https://api.blockchainapi.com/v1
| Method | HTTP request | Description |
|---|---|---|
| createCCProject | POST /checkout/v1/project | Create a project |
| deleteCCProject | DELETE /checkout/v1/project/{project_id} | Delete a project |
| getCCProject | GET /checkout/v1/project/{project_id} | Get a project |
| listCCProjects | GET /checkout/v1/projects | List projects |
| updateCCProject | PUT /checkout/v1/project/{project_id} | Update a project |
CCProject createCCProject()
A project represents that project or company that is accepting payments. A project can have products, which can have multiple plans (prices) each. To create a project, you just need to supply a name and a Solana public key to receive payments. Cost: 0 Credit (Free) (<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.CCProjectApi(configuration);
let body:theblockchainapi.CCProjectApiCreateCCProjectRequest = {
// CCProjectCreateRequest (optional)
cCProjectCreateRequest: {
name: "name_example",
description: "description_example",
webhook: "webhook_example",
website: "website_example",
discordWebhook: "discordWebhook_example",
logoUrl: "logoUrl_example",
customerIdToCollect: {
idType: "misc",
name: "name_example",
description: "",
required: false,
},
successUrl: "successUrl_example",
payoutMethod: {
blockchainIdentifier: "blockchainIdentifier_example",
},
},
};
apiInstance.createCCProject(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| cCProjectCreateRequest | CCProjectCreateRequest |
CCProject
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad request (check response message) | - |
| 401 | Invalid API key pair in headers | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteCCProject()
Delete a project. Cost: 0 Credit (Free) (<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.CCProjectApi(configuration);
let body:theblockchainapi.CCProjectApiDeleteCCProjectRequest = {
// string | The ID of the project. Created and returned when a project is created.
projectId: "project_WDQskRIfHQxj53N5mk5K",
};
apiInstance.deleteCCProject(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | [string] | The ID of the project. Created and returned when a project is created. | defaults to undefined |
void
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad request (check response message) | - |
| 401 | Invalid API key pair in headers | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CCProject getCCProject()
Retrieve a project. Cost: 0 Credit (Free) (<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.CCProjectApi(configuration);
let body:theblockchainapi.CCProjectApiGetCCProjectRequest = {
// string | The ID of the project. Created and returned when a project is created.
projectId: "project_WDQskRIfHQxj53N5mk5K",
};
apiInstance.getCCProject(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | [string] | The ID of the project. Created and returned when a project is created. | defaults to undefined |
CCProject
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad request (check response message) | - |
| 401 | Invalid API key pair in headers | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listCCProjects()
List all projects associated with an account. Cost: 0 Credit (Free) (<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.CCProjectApi(configuration);
let body:any = {};
apiInstance.listCCProjects(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));This endpoint does not need any parameter.
Array
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad request (check response message) | - |
| 401 | Invalid API key pair in headers | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CCProject updateCCProject()
Retrieve a project. Cost: 0 Credit (Free) (<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.CCProjectApi(configuration);
let body:theblockchainapi.CCProjectApiUpdateCCProjectRequest = {
// string | The ID of the project. Created and returned when a project is created.
projectId: "project_WDQskRIfHQxj53N5mk5K",
// CCProject (optional)
cCProject: {
projectId: "projectId_example",
name: "name_example",
description: "description_example",
webhook: "webhook_example",
website: "website_example",
discordWebhook: "discordWebhook_example",
logoUrl: "logoUrl_example",
customerIdToCollect: {
idType: "misc",
name: "name_example",
description: "",
required: false,
},
successUrl: "successUrl_example",
payoutMethod: {
blockchainIdentifier: "blockchainIdentifier_example",
},
},
};
apiInstance.updateCCProject(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| cCProject | CCProject | ||
| projectId | [string] | The ID of the project. Created and returned when a project is created. | defaults to undefined |
CCProject
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad request (check response message) | - |
| 401 | Invalid API key pair in headers | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]