GET /api/v2/premium-service-transactions
Get all Premium Service Transactions

Examples

GET /api/v2/premium-service-transactions
200
{
  "data": [
    {
      "id": "2",
      "type": "premium-service-transactions",
      "links": {
        "self": "http://test.host/api/v2/premium-service-transactions/2"
      },
      "attributes": {
        "transaction-type": "credit",
        "smarts": "60.0",
        "amount": "7500.0",
        "created-at": "2018-01-24T09:59:47.933+08:00",
        "updated-at": "2018-01-24T09:59:47.933+08:00"
      },
      "relationships": {
        "company": {
          "links": {
            "self": "http://test.host/api/v2/premium-service-transactions/2/relationships/company",
            "related": "http://test.host/api/v2/premium-service-transactions/2/company"
          }
        },
        "premium-service-request": {
          "links": {
            "self": "http://test.host/api/v2/premium-service-transactions/2/relationships/premium-service-request",
            "related": "http://test.host/api/v2/premium-service-transactions/2/premium-service-request"
          }
        }
      }
    }
  ],
  "meta": {
    "total-pages": 1,
    "record-count": 1
  },
  "links": {
    "first": "http://test.host/api/v2/premium-service-transactions?page%5Bnumber%5D=1&page%5Bsize%5D=10",
    "last": "http://test.host/api/v2/premium-service-transactions?page%5Bnumber%5D=1&page%5Bsize%5D=10"
  }
}

GET /api/v2/premium-service-transactions/:id
Show a Premium Service Transaction

Examples

GET /api/v2/premium-service-transactions/4
200
{
  "data": {
    "id": "4",
    "type": "premium-service-transactions",
    "links": {
      "self": "http://test.host/api/v2/premium-service-transactions/4"
    },
    "attributes": {
      "transaction-type": "credit",
      "smarts": "60.0",
      "amount": "7500.0",
      "created-at": "2018-01-24T09:59:48.312+08:00",
      "updated-at": "2018-01-24T09:59:48.312+08:00"
    },
    "relationships": {
      "company": {
        "links": {
          "self": "http://test.host/api/v2/premium-service-transactions/4/relationships/company",
          "related": "http://test.host/api/v2/premium-service-transactions/4/company"
        }
      },
      "premium-service-request": {
        "links": {
          "self": "http://test.host/api/v2/premium-service-transactions/4/relationships/premium-service-request",
          "related": "http://test.host/api/v2/premium-service-transactions/4/premium-service-request"
        }
      }
    }
  }
}

Params

Param name Description
id
required

Premium Service Transaction ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.