> For the complete documentation index, see [llms.txt](https://g2g-apis.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://g2g-apis.gitbook.io/project/untitled.md).

# CSGO Listing API

## Create Listing

<mark style="color:green;">`POST`</mark> `URL/seller/index`

This endpoint allows seller to create CSGO listing

#### Request Body

| Name                        | Type    | Description                                                                          |
| --------------------------- | ------- | ------------------------------------------------------------------------------------ |
| api\_key                    | string  | **G2G-assigned seller’s API key**                                                    |
| signature                   | string  |                                                                                      |
| customer\_id                | integer | **Customer ID**                                                                      |
| timestamp                   | integer | **The timestamp for this API call**                                                  |
| action                      | string  | **The action of this call, must be hardcoded to “create-listing”**                   |
| game\_code                  | integer | **The code for the game, must be hardcoded to "skins.csgo"**                         |
| steam\_id                   | string  |                                                                                      |
| seller\_trade\_url          | string  |                                                                                      |
| language                    | string  | **If value empty will used english, Refer to appendix for list of possible values.** |
| product                     | array   | **\* Only up to 1 values, 255 character length for each data**                       |
| product.x.asset\_id         | integer |                                                                                      |
| product.x.currency          | string  | **Refer to appendix Currency Code for possible values**                              |
| product.x.price\_per\_unit  | integer |                                                                                      |
| product.x.listing\_duration | integer | **Refer to appendix Listing Duration for possible input values**                     |
| product.x.eta\_online       | integer | **Refer to appendix Online and Offline Hours for possible input values**             |
| product.x.eta\_offline      | integer | **Refer to appendix Online and Offline Hours for possible input values**             |

{% tabs %}
{% tab title="200 " %}

```
{
    "listing_id": "750"
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "error": [
        "products_base_currency": [
            "Invalid currency."
        ]
    ]
}
```

{% endtab %}
{% endtabs %}

## Manage Listing&#x20;

<mark style="color:green;">`POST`</mark> `URL/seller/index`

This endpoint allows seller to manage their CSGO listing.

#### Request Body

| Name                        | Type    | Description                                                                               |
| --------------------------- | ------- | ----------------------------------------------------------------------------------------- |
| product.x.products\_status  | number  | **Status of listing. Refer to appendix for possible values \[Appendix: Products Status]** |
| action                      | string  | **The action of this call, must be hardcoded to “manage-listing”**                        |
| timestamp                   | integer | **The timestamp for this API call**                                                       |
| api\_key                    | string  | **G2G-assigned seller’s API key**                                                         |
| customer\_id                | integer | **Customer ID**                                                                           |
| language                    | string  | **If value empty will used english, Refer to appendix for list of possible values.**      |
| signature                   | string  |                                                                                           |
| product                     | array   |                                                                                           |
| product.x.listing.id        | string  | **Response data from ‘Create Listing” API**                                               |
| product.x.currency          | string  | **Refer to appendix Currency Code for possible values**                                   |
| product.x.price\_per\_unit  | integer |                                                                                           |
| product.x.listing\_duration | integer | **Refer to appendix Listing Duration for possible values**                                |
| product.x.eta\_online       | integer | **Refer to appendix Online and Offline hours for possible values**                        |
| product.x.eta\_offline      | integer | **Refer to appendix Online and Offline hours for possible values**                        |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
            "listing_id": "750",
            "message": "Successfully Updated"
}
```

{% endtab %}

{% tab title="400 Could not find a cake matching this query." %}

```javascript
 {
            "listing_id": "750",
            "error": {
                "products_base_currency": [
                    "Invalid currency."
                ]
            }
 }
```

{% endtab %}
{% endtabs %}
